[llvm] [RISCV][GlobalISel] Select G_FRAME_INDEX (PR #68254)

Nitin John Raj via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 13:09:45 PDT 2023


================
@@ -239,6 +239,19 @@ bool RISCVInstructionSelector::select(MachineInstr &MI) {
   }
   case TargetOpcode::G_SEXT_INREG:
     return selectSExtInreg(MI, MIB);
+  case TargetOpcode::G_FRAME_INDEX: {
+    // TODO: We may want to replace this code with the SelectionDAG patterns,
+    // which fail to get imported because it uses FrameAddrRegImm, which is a
+    // ComplexPattern
+    Register DstReg = MI.getOperand(0).getReg();
+
+    if (!MRI.getType(DstReg).isPointer())
----------------
nitinjohnraj wrote:

You're right, let me remove this

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


More information about the llvm-commits mailing list