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:
6d8cdf1
)
reenable this xform, whoops :)
author
Chris Lattner
<sabre@nondot.org>
Sun, 8 Apr 2007 08:01:49 +0000
(08:01 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 8 Apr 2007 08:01:49 +0000
(08:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35765
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 1edd3f0d0b7355b1f8d583cc0e1098dbb35dcb23..2dbc70e0ffbecb0b9d9540aefcb098561e568a16 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-3739,6
+3739,7
@@
Instruction *InstCombiner::visitOr(BinaryOperator &I) {
return ReplaceInstUsesWith(I, B);
}
}
+ V1 = 0; V2 = 0; V3 = 0;
}
// Check to see if we have any common things being and'ed. If so, find the
@@
-3760,7
+3761,7
@@
Instruction *InstCombiner::visitOr(BinaryOperator &I) {
}
// (V1 & V3)|(V2 & ~V3) -> ((V1 ^ V2) & V3) ^ V2
- if (
0 &&
isOnlyUse(Op0) && isOnlyUse(Op1)) {
+ if (isOnlyUse(Op0) && isOnlyUse(Op1)) {
// Try all combination of terms to find V3 and ~V3.
if (A->hasOneUse() && match(A, m_Not(m_Value(V3)))) {
if (V3 == B)