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:
b908f8a
)
fix a subtle bug I introduced when refactoring SCCP. Testcase
author
Chris Lattner
<sabre@nondot.org>
Tue, 3 Nov 2009 16:50:11 +0000
(16:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 3 Nov 2009 16:50:11 +0000
(16:50 +0000)
to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85903
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/SCCP.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/SCCP.cpp
b/lib/Transforms/Scalar/SCCP.cpp
index fb6101b0b99d8f99305fd80e232b34ba207b003f..2ee4bbc95b17f54f54928ef4d63b625b2f63871b 100644
(file)
--- a/
lib/Transforms/Scalar/SCCP.cpp
+++ b/
lib/Transforms/Scalar/SCCP.cpp
@@
-107,7
+107,7
@@
public:
/// markConstant - Return true if this is a change in status.
bool markConstant(Constant *V) {
- if (
isConstant()) {
+ if (
getLatticeValue() == constant) { // Constant but not forcedconstant.
assert(getConstant() == V && "Marking constant with different value");
return false;
}