OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ff863c
)
Minor code simplification.
author
Dan Gohman
<gohman@apple.com>
Tue, 30 Jun 2009 01:24:43 +0000
(
01:24
+0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 30 Jun 2009 01:24:43 +0000
(
01:24
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74491
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/LoopSimplify.cpp
b/lib/Transforms/Utils/LoopSimplify.cpp
index
ee3f38a
..
d6b167f
100644
(file)
--- a/
lib/Transforms/Utils/LoopSimplify.cpp
+++ b/
lib/Transforms/Utils/LoopSimplify.cpp
@@
-282,10
+282,9
@@
ReprocessLoop:
// Attempt to hoist out all instructions except for the
// comparison and the branch.
bool AllInvariant = true;
- for (BasicBlock::iterator I = ExitingBlock->begin(),
- E = ExitingBlock->end(); I != E; ) {
+ for (BasicBlock::iterator I = ExitingBlock->begin(); &*I != BI; ) {
Instruction *Inst = I++;
- if (Inst ==
BI || Inst ==
CI)
+ if (Inst == CI)
continue;
if (Inst->isTrapping()) {
AllInvariant = false;