[llvm-commits] [llvm] r85662 - /llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
Dan Gohman
gohman at apple.com
Sat Oct 31 07:46:51 PDT 2009
Author: djg
Date: Sat Oct 31 09:46:50 2009
New Revision: 85662
URL: http://llvm.org/viewvc/llvm-project?rev=85662&view=rev
Log:
Simplify this code.
Modified:
llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp?rev=85662&r1=85661&r2=85662&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp Sat Oct 31 09:46:50 2009
@@ -44,8 +44,8 @@
for (unsigned op = 0, E = I->getNumOperands(); op != E; ++op) {
Value *Op = I->getOperand(op);
DenseMap<const Value *, Value*>::iterator It = ValueMap.find(Op);
- if (It != ValueMap.end()) Op = It->second;
- I->setOperand(op, Op);
+ if (It != ValueMap.end())
+ I->setOperand(op, It->second);
}
}
More information about the llvm-commits
mailing list