[llvm] [InstCombine] Remove one-use requirement for add iN (sext i1 X), (sext i1 Y) --> sext (X | Y) to iN (PR #90509)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 20:35:51 PDT 2024


topperc wrote:

> > Increases instruction count if both sexts have extra uses.
> 
> 
> 
> Just checked and at worst the count stays the same.

In the worst case doesn't it remove 1 Add and insert an Or and a SExt. That's an increase of 1.

https://github.com/llvm/llvm-project/pull/90509


More information about the llvm-commits mailing list