summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-18 08:32:43 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-18 08:32:43 +0000
commit539429d9b5267a19238b49657eab29293b99aa7c (patch)
treefaeb64cbad43b290c0468bf2c81ad8aad97a3cb1
parent6c2b627e2394f8642389ce08a494c1277074f6f6 (diff)
downloadbcm5719-llvm-539429d9b5267a19238b49657eab29293b99aa7c.tar.gz
bcm5719-llvm-539429d9b5267a19238b49657eab29293b99aa7c.zip
Delete a no-op loop.
llvm-svn: 14965
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 33370c33977..6ade82e1bd7 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -3103,15 +3103,6 @@ bool InstCombiner::runOnFunction(Function &F) {
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;
OpenPOWER on IntegriCloud