[llvm] [InstCombine] Fold shuffles through all trivially vectorizable intrinsics (PR #141979)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 04:58:47 PDT 2025
================
@@ -1432,11 +1431,15 @@ InstCombinerImpl::foldShuffledIntrinsicOperands(IntrinsicInst *II) {
// See if all arguments are shuffled with the same mask.
----------------
lukel97 wrote:
Good point, I went poking around though and it looks like constants don't return true for hasOneUse(). They seem to show up as 0 uses, so it happens to work today by coincidence.
Will fix anyway since I think with this patch we also need to worry about non-constant scalar args.
https://github.com/llvm/llvm-project/pull/141979
More information about the llvm-commits
mailing list