[llvm] [InstCombine] Add combines for unsigned comparison of absolute value to constant (PR #176148)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 26 03:13:43 PST 2026
================
@@ -4301,6 +4301,32 @@ Instruction *InstCombinerImpl::foldICmpIntrinsicWithConstant(ICmpInst &Cmp,
II->getArgOperand(1));
}
break;
+ case Intrinsic::abs: {
+ if (!II->hasOneUse())
----------------
fhahn wrote:
It looks like we may are still missing a test with the multi-use case from https://github.com/dtcxzyw/llvm-opt-benchmark/pull/3359/files#r2705794849?
https://github.com/llvm/llvm-project/pull/176148
More information about the llvm-commits
mailing list