aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-04-04 06:42:45 +0000
committerDuncan Sands <baldrick@free.fr>2007-04-04 06:42:45 +0000
commit0091bf2439be9185a965f4bdeabd070ee3940348 (patch)
tree12ad82a2e7674be114d8744244c9ccb57ec5c49b
parentc82a5da049774631a63584601ddb840ca4cee07a (diff)
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35655 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index d26fbced5b..a76152804a 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -4903,7 +4903,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
const APInt &RHSV = RHS->getValue();
switch (LHSI->getOpcode()) {
- case Instruction::Xor: // (icmp pred (and X, XorCST), CI)
+ case Instruction::Xor: // (icmp pred (xor X, XorCST), CI)
if (ConstantInt *XorCST = dyn_cast<ConstantInt>(LHSI->getOperand(1))) {
// If this is a comparison that tests the signbit (X < 0) or (x > -1),
// fold the xor.