diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-14 18:10:33 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-10-14 18:10:33 +0000 |
commit | 137b62ccc81caefb671fca46904fc4ef109ab787 (patch) | |
tree | b70407028073dad6ed50b58378aea9e16e416aff | |
parent | aa703203c3a1c67f68d31a498cc0cd233e5b29e3 (diff) |
Two bug fixes that were suppressing some "load-constant-into-register" instrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@795 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index 891c319c00..d303f8eb90 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -1146,7 +1146,7 @@ CreateLoadConstInstr(const TargetMachine &target, TmpInstruction* InsertCodeToLoadConstant(ConstPoolVal* opValue, Instruction* vmInstr, - vector<MachineInstr*> loadConstVec, + vector<MachineInstr*>& loadConstVec, TargetMachine& target) { // value is constant and must be loaded into a register. @@ -1244,7 +1244,7 @@ FixConstantOperands(const InstructionNode* vmInstrNode, // have no immediate fields, so the constant always needs to be loaded // into a register. // - for (unsigned i=1, N=minstr->getNumImplicitRefs(); i < N; ++i) + for (unsigned i=0, N=minstr->getNumImplicitRefs(); i < N; ++i) if (isa<ConstPoolVal>(minstr->getImplicitRef(i))) { TmpInstruction* tmpReg = InsertCodeToLoadConstant((ConstPoolVal*) |