summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-13 21:01:20 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-13 21:01:20 +0000
commit8cdd0215bf004968dffc50c73c9aaa19cee5822c (patch)
tree83a48d75e47bb8cf4445366cc9561a5f75e34c0e /llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp
parentef9d025ebedc5495b17ba41cb6f3d12bf29af022 (diff)
downloadbcm5719-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.cpp3
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();
}
OpenPOWER on IntegriCloud