[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


================
@@ -882,7 +886,8 @@ def ProcessorFeatures {
   list<SubtargetFeature> NHMTuning = [TuningMacroFusion,
                                       TuningSlowDivide64,
                                       TuningInsertVZEROUPPER,
-                                      TuningNoDomainDelayMov];
+                                      TuningNoDomainDelayMov,
+                                      TuningAvoidMFENCE];
----------------
RKSimon wrote:

Probably add TuningAvoidMFENCE to tuning for x86-64-v2 and later?

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


More information about the llvm-commits mailing list