[PATCH] D159131: [RISCV][GlobalISel] Select G_ICMP

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 08:34:20 PDT 2023


arsenm added inline comments.


================
Comment at: llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp:164
+  switch (MI.getOpcode()) {
+  case TargetOpcode::G_ICMP: {
+    MachineOperand *SrcOps[2] = {&MI.getOperand(2), &MI.getOperand(3)};
----------------
This is pretty ugly, I thought tablegen already did something for the pointer types to the int patterns here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159131/new/

https://reviews.llvm.org/D159131



More information about the llvm-commits mailing list