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:
0b0803a
)
fix pasto
author
Chris Lattner
<sabre@nondot.org>
Sun, 17 Feb 2008 20:54:40 +0000
(20:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 17 Feb 2008 20:54:40 +0000
(20:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47242
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/Reassociate.cpp
b/lib/Transforms/Scalar/Reassociate.cpp
index bec91dbe67caf50b63ac624e1db95bed1ed774c3..3e2d38f76baeb628e4c370729b72f1e735bb50a1 100644
(file)
--- a/
lib/Transforms/Scalar/Reassociate.cpp
+++ b/
lib/Transforms/Scalar/Reassociate.cpp
@@
-404,7
+404,7
@@
static bool ShouldBreakUpSubtract(Instruction *Sub) {
isReassociableOp(Sub->getOperand(0), Instruction::Sub))
return true;
if (isReassociableOp(Sub->getOperand(1), Instruction::Add) ||
- isReassociableOp(Sub->getOperand(
0
), Instruction::Sub))
+ isReassociableOp(Sub->getOperand(
1
), Instruction::Sub))
return true;
if (Sub->hasOneUse() &&
(isReassociableOp(Sub->use_back(), Instruction::Add) ||