aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2007-12-18 20:33:11 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2007-12-18 20:33:11 +0000
commitfd6668a5fa33f506ca562c9fe0f687426ed26359 (patch)
treefe241e2be2da1d6bfc0c24d64e345763a6cdee03
parent874eaff8d07ffd2fcfe9bd0145f69238f779c8be (diff)
downloadexternal_llvm-fd6668a5fa33f506ca562c9fe0f687426ed26359.zip
external_llvm-fd6668a5fa33f506ca562c9fe0f687426ed26359.tar.gz
external_llvm-fd6668a5fa33f506ca562c9fe0f687426ed26359.tar.bz2
Fix comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45170 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index dec298b..1e4b1c3 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -2151,14 +2151,12 @@ Instruction *InstCombiner::visitAdd(BinaryOperator &I) {
if (match(FV, m_ConstantInt(C1)) && C1->getValue() == 0 &&
match(TV, m_Sub(m_ConstantInt(C2), m_Value(A))) &&
A == Other) {
- // We managed to fold the add into the true select value,
- // picking up a simplified condition, if available.
+ // We managed to fold the add into the true select value.
return new SelectInst(SI->getCondition(), C2, A);
} else if (match(TV, m_ConstantInt(C1)) && C1->getValue() == 0 &&
match(FV, m_Sub(m_ConstantInt(C2), m_Value(A))) &&
A == Other) {
- // We managed to fold the add into the false select value,
- // picking up a simplified condition, if available.
+ // We managed to fold the add into the false select value.
return new SelectInst(SI->getCondition(), A, C2);
}
}