[X86] Add vcmpsh/vcmpph to X86InstrInfo::commuteInstructionImpl.
authorCraig Topper <craig.topper@sifive.com>
Sun, 15 Aug 2021 18:35:20 +0000 (11:35 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sun, 15 Aug 2021 18:36:13 +0000 (11:36 -0700)
commit786b8fcc9b1eed093926e6d9c36891ab72b7bde3
tree4dbacdd7f4e9739187df2c21fef125a3c17a1c02
parente5b15c01817da62f4b224f7554d5c84daae80d5f
[X86] Add vcmpsh/vcmpph to X86InstrInfo::commuteInstructionImpl.

They were already added to findCommuteOpIndices, but they also
need to be in X86InstrInfo::commuteInstructionImpl in order
to adjust the immediate control.
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/test/CodeGen/X86/select-of-half-constants.ll