mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 22:00:58 +00:00
Delete a no-op loop.
llvm-svn: 14965
This commit is contained in:
parent
7236678c32
commit
2b7bae6b4f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user