aboutsummaryrefslogtreecommitdiffstats
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
commit5f0eb64079812119328d6d450815a38fae122089 (patch)
treed5456609a29e8172077700ed63e4adc2a9cee7ad
parentc3c92d834a78b16910b4afef29697c0b83a89f26 (diff)
downloadexternal_llvm-5f0eb64079812119328d6d450815a38fae122089.zip
external_llvm-5f0eb64079812119328d6d450815a38fae122089.tar.gz
external_llvm-5f0eb64079812119328d6d450815a38fae122089.tar.bz2
Delete a no-op loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14965 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 33370c3..6ade82e 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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;