[llvm] [X86] Prefer `lock or` over mfence (PR #106555)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 08:22:59 PDT 2024


================
@@ -754,6 +754,10 @@ def TuningUseGLMDivSqrtCosts
 def TuningBranchHint: SubtargetFeature<"branch-hint", "HasBranchHint", "true",
                                         "Target has branch hint feature">;
 
+def TuningAvoidMFENCE
+   : SubtargetFeature<"avoid-mfence", "AvoidMFence", "true",
----------------
RKSimon wrote:

Add tests for -mattr=+avoid-mfence/-avoid-mfence to atomic-unordered.ll

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


More information about the llvm-commits mailing list