[llvm] [RISCV][GISel] Legalizer and register bank selection for G_JUMP_TABLE and G_BRJT (PR #71970)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 12:30:56 PST 2023


================
@@ -131,13 +131,14 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
 
   getActionDefinitionsBuilder(G_BRCOND).legalFor({sXLen}).minScalar(0, sXLen);
 
+  getActionDefinitionsBuilder(G_BRJT).legalFor({{p0, sXLen}});
----------------
topperc wrote:

If it generated s32, the instruction selection code would have to insert an extend to use the index wouldn't it?

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


More information about the llvm-commits mailing list