[llvm] [InstCombine] Use samesign constraints in unsigned known-bits folds (PR #209097)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 09:48:50 PDT 2026
================
@@ -7276,11 +7292,15 @@ static ICmpInst *canonicalizeCmpWithConstant(ICmpInst &I) {
if (!Op1C)
return nullptr;
- auto FlippedStrictness = getFlippedStrictnessPredicateAndConstant(Pred, Op1C);
+ auto FlippedStrictness =
+ getFlippedStrictnessPredicateAndConstant(I.getCmpPredicate(), Op1C);
----------------
dtcxzyw wrote:
Change the line `ICmpInst::Predicate Pred = I.getPredicate();` to `CmpPredicate Pred = I.getCmpPredicate();`
https://github.com/llvm/llvm-project/pull/209097
More information about the llvm-commits
mailing list