aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/Reassociate.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-17 20:54:40 +0000
committerChris Lattner <sabre@nondot.org>2008-02-17 20:54:40 +0000
commit720f2babfc205b3be4d0b675dc9511528c009c71 (patch)
tree60bfa94e23fc18fd4276162b65fc6f42338de304 /lib/Transforms/Scalar/Reassociate.cpp
parent4846b31ef91352bbad8a13b6225190e3171ce69d (diff)
downloadexternal_llvm-720f2babfc205b3be4d0b675dc9511528c009c71.zip
external_llvm-720f2babfc205b3be4d0b675dc9511528c009c71.tar.gz
external_llvm-720f2babfc205b3be4d0b675dc9511528c009c71.tar.bz2
fix pasto
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/Reassociate.cpp')
-rw-r--r--lib/Transforms/Scalar/Reassociate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp
index bec91db..3e2d38f 100644
--- 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) ||