[llvm] [RISCV] Add additional fence for amocas when required by recent ABI change (PR #101023)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 15:22:20 PDT 2024


================
@@ -680,6 +680,10 @@ class RISCVTargetLowering : public TargetLowering {
 
   bool preferZeroCompareBranch() const override { return true; }
 
+  // Note that one specific case requires fence insertion for an
+  // AtomicCmpXchgInst but is handled via RISCVCodeGenPrepare rather than this
----------------
topperc wrote:

Comment needs updating for new pass

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


More information about the llvm-commits mailing list