================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits