diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index 66e2b6c72cce4..90fce56d88c30 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -6945,8 +6945,10 @@ Instruction *InstCombinerImpl::visitICmpInst(ICmpInst &I) { Changed = true; } +#if 0 if (Value *V = simplifyICmpInst(I.getPredicate(), Op0, Op1, Q)) return replaceInstUsesWith(I, V); +#endif // Comparing -val or val with non-zero is the same as just comparing val // ie, abs(val) != 0 -> val != 0