[llvm] [RISCV] Use software guarded branch for indirect jump table branch. (PR #66762)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 09:24:16 PDT 2024


================
@@ -1916,6 +1926,12 @@ def : Pat<(binop_allwusers<add> GPR:$rs1, (AddiPair:$rs2)),
                  (AddiPairImmSmall AddiPair:$rs2))>;
 }
 
+let Predicates = [HasStdExtZicfilp] in {
+def : Pat<(riscv_sw_guarded_brind GPRX7:$rs1), (PseudoBRINDX7 GPRX7:$rs1, 0)>;
----------------
topperc wrote:

Is this the same as the code on line 1474?

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


More information about the llvm-commits mailing list