From d31f972bd33de85071c716f69bf5c6d735f730f2 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 29 Jun 2010 14:02:34 +0000 Subject: Add a VT argument to getMinimalPhysRegClass and replace the copy related uses of getPhysicalRegisterRegClass with it. If we want to make a copy (or estimate its cost), it is better to use the smallest class as more efficient operations might be possible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107140 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetRegisterInfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/llvm/Target') diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index 16a2be9..eb997cd 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -321,7 +321,8 @@ public: /// getMinimalPhysRegClass - Returns the Register Class of a physical /// register of the given type. - const TargetRegisterClass * getMinimalPhysRegClass(unsigned Reg) const; + const TargetRegisterClass * + getMinimalPhysRegClass(unsigned Reg, EVT VT = MVT::Other) const; /// getAllocatableSet - Returns a bitset indexed by register number /// indicating if a register is allocatable or not. If a register class is -- cgit v1.1