[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:17 PDT 2024


================
@@ -46,6 +46,7 @@ def SDT_RISCVIntBinOpW : SDTypeProfile<1, 2, [
 def SDT_RISCVIntShiftDOpW : SDTypeProfile<1, 3, [
   SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisVT<0, i64>, SDTCisVT<3, i64>
 ]>;
+def SDT_RISCVSWGuardedBrind : SDTypeProfile<0, -1, [SDTCisVT<0, iPTR>]>;
----------------
topperc wrote:

Why is this different than

```
def SDTBrind : SDTypeProfile<0, 1, [        // brind                             
  SDTCisPtrTy<0>                                                                 
]>;
```

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


More information about the llvm-commits mailing list