[llvm] [InstCombine] Fix i1 ssub.sat compare folding (PR #173742)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 29 06:08:33 PST 2025


dtcxzyw wrote:

> I'm happy to add the !Ty->isIntegerTy(1) guard here in instcombine, if you're OK with that being untested.

I am fine with this. You can use `BitWidth != 1/ !Ty->isIntOrIntVecTy(1)` to bail out on both scalar and vector cases.


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


More information about the llvm-commits mailing list