projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
242b38b
)
Should reset DBI_Prev if DBI_Next == 0.
author
Zhou Sheng
<zhousheng00@gmail.com>
Mon, 23 Feb 2009 10:14:11 +0000
(10:14 +0000)
committer
Zhou Sheng
<zhousheng00@gmail.com>
Mon, 23 Feb 2009 10:14:11 +0000
(10:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65314
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index 1a4396bace352e1c2f65e4064a68afc87aead9d7..7f2cab96ec5550993c0d12cc8d794a152f99841f 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-12419,6
+12419,8
@@
static void AddReachableCodeToWorklist(BasicBlock *BB,
DBI_Prev->eraseFromParent();
}
DBI_Prev = DBI_Next;
+ } else {
+ DBI_Prev = 0;
}
IC.AddToWorkList(Inst);