projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merging r259375:
[oota-llvm.git]
/
lib
/
Transforms
/
InstCombine
/
InstCombineCompares.cpp
diff --git
a/lib/Transforms/InstCombine/InstCombineCompares.cpp
b/lib/Transforms/InstCombine/InstCombineCompares.cpp
index c0786afe965ee4e626d4118360c559baa9749755..d9311a343eadb57fdcfd9d02a592e91985335a31 100644
(file)
--- a/
lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/
lib/Transforms/InstCombine/InstCombineCompares.cpp
@@
-3560,7
+3560,7
@@
Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
BO1->getOperand(0));
}
- if (CI->isMaxValue(true)) {
+ if (
BO0->getOpcode() == Instruction::Xor &&
CI->isMaxValue(true)) {
ICmpInst::Predicate Pred = I.isSigned()
? I.getUnsignedPredicate()
: I.getSignedPredicate();