Unverified Commit b5b61cce authored by Henry Jiang's avatar Henry Jiang Committed by GitHub
Browse files

[VectorCombine] Preserves the maximal legal FPMathFlags during foldShuffleToIdentity (#94295)



The `VectorCombine::foldShuffleToIdentity` does not preserve fast math
flags when folding the shuffle, leading to unexpected vectorized result
and missed optimizations with FMA instructions.

We can conservatively take the maximal legal set of fast math flags
whenever we fold shuffles to identity to enable further optimizations in
the backend.

---------

Co-authored-by: default avatarHenry Jiang <henry.jiang1@ibm.com>
parent 07b9d231
Pipeline #3230 canceled with stages
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment