[llvm] Add Instruction selection support for x87 ld/st (PR #97016)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 06:36:45 PDT 2024
================
@@ -195,6 +195,14 @@ X86InstructionSelector::getRegClass(LLT Ty, const RegisterBank &RB) const {
return &X86::VR512RegClass;
}
+ if (RB.getID() == X86::PSRRegBankID) {
+ if (Ty.getSizeInBits() == 80)
+ return &X86::RFP80RegClass;
+ if (Ty.getSizeInBits() == 64)
+ return &X86::RFP64RegClass;
+ return &X86::RFP32RegClass;
+ }
+
----------------
tschuett wrote:
I vote for the `if (Ty.getSizeInBits() ==32)` . You have an unreachable check below.
https://github.com/llvm/llvm-project/pull/97016
More information about the llvm-commits
mailing list