aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-03-08 06:29:47 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-03-08 06:29:47 +0000
commitdcf77575d25ad4841e585afa27bc5ee62b32d9fd (patch)
tree994f43403c3c6da6f82b244a4e2db6de29afb737 /lib
parent290342a15755e9f128916eb66ec88812d6cee569 (diff)
downloadexternal_llvm-dcf77575d25ad4841e585afa27bc5ee62b32d9fd.zip
external_llvm-dcf77575d25ad4841e585afa27bc5ee62b32d9fd.tar.gz
external_llvm-dcf77575d25ad4841e585afa27bc5ee62b32d9fd.tar.bz2
Reorder comments to put them the right way around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/InstCombine/InstCombineCompares.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 108806a..8787e2a 100644
--- a/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -2315,11 +2315,11 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
return new ICmpInst(Pred, D, B);
BinaryOperator *SRem = NULL;
- // icmp Y, (srem X, Y)
+ // icmp (srem X, Y), Y
if (BO0 && BO0->getOpcode() == Instruction::SRem &&
Op1 == BO0->getOperand(1))
SRem = BO0;
- // icmp (srem X, Y), Y
+ // icmp Y, (srem X, Y)
else if (BO1 && BO1->getOpcode() == Instruction::SRem &&
Op0 == BO1->getOperand(1))
SRem = BO1;