diff options
author | John Criswell <criswell@uiuc.edu> | 2003-12-10 22:51:41 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-12-10 22:51:41 +0000 |
commit | fb55ac24ec60d9f7799325d9a47d0ab3a814f88e (patch) | |
tree | 59a4eb56f370087982bc47e45d2b1ddee068ca81 /llvm/lib | |
parent | 6281fd3eada3ccfb4c8e51889b3a9616285f3e5d (diff) | |
download | bcm5719-llvm-fb55ac24ec60d9f7799325d9a47d0ab3a814f88e.tar.gz bcm5719-llvm-fb55ac24ec60d9f7799325d9a47d0ab3a814f88e.zip |
This appears to fix Bug 172 and does not break any other feature tests or
regression tests.
llvm-svn: 10388
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index 44a43596ee3..73e5480d122 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -167,6 +167,12 @@ FixConstantOperandsForInstr(Instruction* vmInstr, constantThatMustBeLoaded = true; } } else { + // + // If the operand is from the constant pool, don't try to change it. + // + if (mop.getType() == MachineOperand::MO_ConstantPoolIndex) { + continue; + } assert(mop.isImmediate()); bool isSigned = mop.getType() == MachineOperand::MO_SignExtendedImmed; |