Luke Lau b81d5e06c7
[InstCombine] Fold shuffles through all trivially vectorizable intrinsics (#141979)
This addresses a TODO in foldShuffledIntrinsicOperands to use
isTriviallyVectorizable instead of a hardcoded list of intrinsics, which
in turn allows more intriniscs to be scalarized by VectorCombine.

From what I can tell every intrinsic here should be speculatable so an
assertion was added.

Because this enables intrinsics like abs which have a scalar operand, we
need to also check isVectorIntrinsicWithScalarOpAtArg.
2025-06-13 18:25:07 +01:00
..
2025-02-04 19:09:57 -05:00
2025-02-04 19:09:57 -05:00
2024-09-21 15:41:06 -07:00
2025-02-04 19:09:57 -05:00
2024-03-19 08:19:45 -07:00