summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-12-10 22:51:41 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-12-10 22:51:41 +0000
commitfb55ac24ec60d9f7799325d9a47d0ab3a814f88e (patch)
tree59a4eb56f370087982bc47e45d2b1ddee068ca81 /llvm/lib
parent6281fd3eada3ccfb4c8e51889b3a9616285f3e5d (diff)
downloadbcm5719-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.cpp6
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;
OpenPOWER on IntegriCloud