[llvm] [instcombine] Delete dead transform for rev(binop splat, rev(x)) (PR #143967)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 13 00:12:04 PDT 2025


dtcxzyw wrote:

> We canonicalize splats to RHS

Does it still happen when BO0splat is not a constant? I cannot find related code in `InstCombinerImpl::foldVectorBinop`.
BTW, the binop may not be commutative. I think it is still useful for sub/div/shl.


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


More information about the llvm-commits mailing list