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

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 12:34:20 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}});
----------------
michaelmaitland wrote:

Yea, sounds like it is better to not legalize it to avoid doing the extra work in selection to extend.

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


More information about the llvm-commits mailing list