[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

LLVM llvm at cs.uiuc.edu
Sun Jul 18 01:32:53 PDT 2004



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.223 -> 1.224

---
Log message:

Delete a no-op loop.


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

Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.223 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.224
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.223	Sat Jul 17 19:29:25 2004
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Sun Jul 18 03:32:43 2004
@@ -3103,15 +3103,6 @@
       continue;
     }
 
-    // Check to see if any of the operands of this instruction are a
-    // GlobalValue.  Since they sneak in all over the place and inhibit
-    // optimization, we want to strip them out unconditionally!
-    for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
-      if (isa<GlobalValue>(I->getOperand(i))) {
-        I->setOperand(i, I->getOperand(i));
-        Changed = true;
-      }
-
     // Now that we have an instruction, try combining it to simplify it...
     if (Instruction *Result = visit(*I)) {
       ++NumCombined;





More information about the llvm-commits mailing list