aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine/InstructionCombining.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-23 15:25:34 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-23 15:25:34 +0000
commitc2b1c0b85d09aa69a625c1baacab0a310b4be552 (patch)
tree586d6cd63ebc9e5b0cdef95a156d34e9ac96789d /lib/Transforms/InstCombine/InstructionCombining.cpp
parent5057f381418ddc8c96699c40479ead993cd62e7b (diff)
Fix typo pointed out by Frits van Bommel and Marius Wachtler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r--lib/Transforms/InstCombine/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp
index ef7430cd72..9a203f8512 100644
--- a/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -238,7 +238,7 @@ bool InstCombiner::SimplifyAssociativeOrCommutative(BinaryOperator &I) {
}
/// LeftDistributesOverRight - Whether "X LOp (Y ROp Z)" is always equal to
-/// "(X LOp Y) ROp (Z LOp Z)".
+/// "(X LOp Y) ROp (X LOp Z)".
static bool LeftDistributesOverRight(Instruction::BinaryOps LOp,
Instruction::BinaryOps ROp) {
switch (LOp) {