[llvm] Add support for x87 registers on GISel register selection (PR #83528)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 3 21:56:14 PST 2024


================
@@ -219,8 +235,8 @@ X86RegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
 
     bool FirstArgIsFP = Opc == TargetOpcode::G_SITOFP;
     bool SecondArgIsFP = Opc == TargetOpcode::G_FPTOSI;
-    OpRegBankIdx[0] = getPartialMappingIdx(Ty0, /* isFP */ FirstArgIsFP);
-    OpRegBankIdx[1] = getPartialMappingIdx(Ty1, /* isFP */ SecondArgIsFP);
+    OpRegBankIdx[0] = getPartialMappingIdx(MI, Ty0, /* isFP= */ FirstArgIsFP);
----------------
arsenm wrote:

I think these need to be hit with clang-format again 

https://github.com/llvm/llvm-project/pull/83528


More information about the llvm-commits mailing list