[llvm] [clang] [RISCV][MC] MC layer support for the experimental zalasr extension (PR #69685)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 25 14:56:57 PST 2024


================
@@ -20506,6 +20506,15 @@ unsigned RISCVTargetLowering::getCustomCtpopCost(EVT VT,
   return isCtpopFast(VT) ? 0 : 1;
 }
 
+bool RISCVTargetLowering::shouldInsertFencesForAtomic(
+    const Instruction *I) const {
+  if (Subtarget.hasStdExtZalasr()) {
+    return false;
+  } else {
----------------
topperc wrote:

No else after return

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


More information about the cfe-commits mailing list