[llvm] [RISCV] Loosen the requirement of shadow stack codegen to Zimop (PR #152251)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 25 12:44:05 PDT 2025


================
@@ -62,6 +62,21 @@ defm SSAMOSWAP_W  : AMO_rr_aq_rl<0b01001, 0b010, "ssamoswap.w">;
 let Predicates = [HasStdExtZicfiss, IsRV64] in
 defm SSAMOSWAP_D  : AMO_rr_aq_rl<0b01001, 0b011, "ssamoswap.d">;
 
+let Predicates = [HasStdExtZimop] in {
+let hasSideEffects = 0, mayLoad = 0, mayStore = 1 in
----------------
topperc wrote:

If we don't model the Uses/Defs of SSP, we probably need hasSideEffects=1.

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


More information about the llvm-commits mailing list