llvm-project
b5b61cce - [VectorCombine] Preserves the maximal legal FPMathFlags during foldShuffleToIdentity (#94295)

Commit
1 year ago
[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: Henry Jiang <henry.jiang1@ibm.com>
Author
Parents
Loading