[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp

John Criswell criswell at cs.uiuc.edu
Wed Dec 10 16:52:01 PST 2003


Changes in directory llvm/lib/CodeGen/InstrSelection:

InstrSelectionSupport.cpp updated: 1.58 -> 1.59

---
Log message:

This appears to fix Bug 172 and does not break any other feature tests or
regression tests.



---
Diffs of the changes:  (+6 -0)

Index: llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.58 llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.59
--- llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.58	Tue Nov 11 16:41:33 2003
+++ llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp	Wed Dec 10 16:51:41 2003
@@ -167,6 +167,12 @@
             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;
 





More information about the llvm-commits mailing list