[llvm] [llvm] Optimize usub.sat fix for #79690 (PR #151044)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 24 19:23:32 PDT 2025
================
@@ -2009,6 +2062,10 @@ Instruction *InstCombinerImpl::foldSelectInstWithICmp(SelectInst &SI,
if (Instruction *NewSel =
tryToReuseConstantFromSelectInComparison(SI, *ICI, *this))
return NewSel;
+ if (Instruction *Folded =
+ foldICmpUSubSatWithAndForMostSignificantBitCmp(SI, ICI, Builder))
+ return Folded;
+ ;
----------------
dtcxzyw wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/151044
More information about the llvm-commits
mailing list