diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-13 21:01:20 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-02-13 21:01:20 +0000 |
commit | 8cdd0215bf004968dffc50c73c9aaa19cee5822c (patch) | |
tree | 83a48d75e47bb8cf4445366cc9561a5f75e34c0e /llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp | |
parent | ef9d025ebedc5495b17ba41cb6f3d12bf29af022 (diff) | |
download | bcm5719-llvm-8cdd0215bf004968dffc50c73c9aaa19cee5822c.tar.gz bcm5719-llvm-8cdd0215bf004968dffc50c73c9aaa19cee5822c.zip |
Remove getAllocatedRegNum(). Use getReg() instead.
llvm-svn: 11393
Diffstat (limited to 'llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp index 131107b991e..a7923862cfa 100644 --- a/llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp +++ b/llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp @@ -71,7 +71,8 @@ ChooseRegOrImmed(int64_t intValue, opType = isSigned? MachineOperand::MO_SignExtendedImmed : MachineOperand::MO_UnextendedImmed; getImmedValue = intValue; - } else if (intValue == 0 && target.getRegInfo().getZeroRegNum() >= 0) { + } else if (intValue == 0 && + target.getRegInfo().getZeroRegNum() != (unsigned)-1) { opType = MachineOperand::MO_MachineRegister; getMachineRegNum = target.getRegInfo().getZeroRegNum(); } |