[llvm] [TableGen][RISCV][GlobalISel] Select G_ICMP, G_SELECT, G_PTR_ADD (PR #67185)

Nitin John Raj via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 09:05:05 PDT 2023


================
@@ -198,13 +216,18 @@ bool RISCVInstructionSelector::select(MachineInstr &MI) {
 
   switch (Opc) {
   case TargetOpcode::G_ANYEXT:
+  case TargetOpcode::G_PTRTOINT:
   case TargetOpcode::G_TRUNC:
     MI.setDesc(TII.get(TargetOpcode::COPY));
-    return true;
+    return selectCopy(MI, MRI);
----------------
nitinjohnraj wrote:

You're right. I think selectCopy should always return true here, so I'll just assert that.

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


More information about the llvm-commits mailing list