[llvm] [RISCV][GlobalISel] Select G_PTR_ADD (PR #67605)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 12:24:47 PDT 2023


================
@@ -130,12 +140,14 @@ bool RISCVInstructionSelector::earlySelectShift(
 }
 
 bool RISCVInstructionSelector::select(MachineInstr &MI) {
-  unsigned Opc = MI.getOpcode();
   MachineBasicBlock &MBB = *MI.getParent();
   MachineFunction &MF = *MBB.getParent();
   MachineRegisterInfo &MRI = MF.getRegInfo();
   MachineIRBuilder MIB(MI);
 
+  preISelLower(MI, MIB, MRI);
----------------
topperc wrote:

preISelLower returns a bool. Do we need return false if that bool is false?

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


More information about the llvm-commits mailing list