summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commitafc8098c9e9da8f315b2d79f04fbc12a765e0dcb (patch)
tree823cbd5fd1cdbb6b6feeafbc2216a2b3add693da /llvm/lib/Transforms
parented14ad24e0a8def211bdfe100574006e4afd312f (diff)
downloadbcm5719-llvm-afc8098c9e9da8f315b2d79f04fbc12a765e0dcb.tar.gz
bcm5719-llvm-afc8098c9e9da8f315b2d79f04fbc12a765e0dcb.zip
Reorder comments to put them the right way around.
llvm-svn: 127220
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 108806a82b7..8787e2ae0e0 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud