[llvm] [RFC][InstCombine] Combine fence with target specific sync scope (PR #93939)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 01:57:50 PDT 2024
================
@@ -30,6 +30,15 @@ define void @test_target_dependent_scope() {
ret void
}
+; CHECK-LABEL: combine_target_dependent_scope
+; CHECK-NEXT: fence syncscope("agent") seq_cst
+; CHECK-NEXT: ret void
+define void @combine_target_dependent_scope() {
+ fence syncscope("agent") acq_rel
+ fence syncscope("agent") seq_cst
+ ret void
+}
+
----------------
arsenm wrote:
Add tests for MMRA preservation (e.g. both same MMRA, and one with different, one missing)
https://github.com/llvm/llvm-project/pull/93939
More information about the llvm-commits
mailing list