diff options
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp index 7cb56f8fe69..cc8f5bf43e5 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp @@ -753,7 +753,7 @@ Value *InstCombiner::FoldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS) {    // (trunc x) == C1 & (and x, CA) == C2 -> (and x, CA|CMAX) == C1|C2    // where CMAX is the all ones value for the truncated type,    // iff the lower bits of C2 and CA are zero. -  if (LHSCC == RHSCC && ICmpInst::isEquality(LHSCC) && +  if (LHSCC == ICmpInst::ICMP_EQ && LHSCC == RHSCC &&        LHS->hasOneUse() && RHS->hasOneUse()) {      Value *V;      ConstantInt *AndCst, *SmallCst = 0, *BigCst = 0;  | 

