llvm-project
217304a0 - [X86] Use X86FixupInstTunings to select between (V)MOVSS/D and (V)BLENDPS/D (#143895)

Commit
109 days ago
[X86] Use X86FixupInstTunings to select between (V)MOVSS/D and (V)BLENDPS/D (#143895) Fix https://github.com/llvm/llvm-project/issues/142588 Following @RKSimon’s suggestion, the transformation applies only when the blend mask is exactly 1, indicating that the instruction behaves like a move. Additionally, the conversion will only be performed when optimizing for size or when the target prefers MOVSS/D over BLENDPS/D for performance reasons. The switch-case instructions were identified with GPT O.O . Co-authored-by: Simon Pilgrim <llvm-dev@redking.me.uk>
Parents
Loading