[llvm] 46fcdbb - [InstCombine] Add alias.scope & noalias metadata to test.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 05:56:30 PST 2024
Author: Florian Hahn
Date: 2024-11-26T13:56:15Z
New Revision: 46fcdbbc78717767551594d5d9174db0bac1b375
URL: https://github.com/llvm/llvm-project/commit/46fcdbbc78717767551594d5d9174db0bac1b375
DIFF: https://github.com/llvm/llvm-project/commit/46fcdbbc78717767551594d5d9174db0bac1b375.diff
LOG: [InstCombine] Add alias.scope & noalias metadata to test.
Added:
Modified:
llvm/test/Transforms/InstCombine/loadstore-metadata.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/loadstore-metadata.ll b/llvm/test/Transforms/InstCombine/loadstore-metadata.ll
index 3fdba7cfae67e1..4976eace72a9f9 100644
--- a/llvm/test/Transforms/InstCombine/loadstore-metadata.ll
+++ b/llvm/test/Transforms/InstCombine/loadstore-metadata.ll
@@ -285,8 +285,8 @@ define double @preserve_load_metadata_after_select_transform_metadata_missing_4(
; CHECK-NEXT: ret double [[L_SEL]]
;
entry:
- %l.a = load double, ptr %a, align 8, !tbaa !0, !llvm.access.group !7
- %l.b = load double, ptr %b, align 8, !tbaa !0, !llvm.access.group !12
+ %l.a = load double, ptr %a, align 8, !tbaa !0, !llvm.access.group !7, !alias.scope !3, !noalias !3
+ %l.b = load double, ptr %b, align 8, !tbaa !0, !llvm.access.group !12, !alias.scope !14, !noalias !14
%cmp.i = fcmp fast olt double %l.a, %l.b
%ptr.sel = select i1 %cmp.i, ptr %b, ptr %a
%l.sel = load double, ptr %ptr.sel, align 8, !tbaa !0, !llvm.access.group !13
@@ -307,6 +307,10 @@ entry:
!11 = !{i32 5, i32 6}
!12 = distinct !{}
!13 = distinct !{}
+!14 = !{!15}
+!15 = distinct !{!15, !16}
+!16 = distinct !{!16}
+
;.
; CHECK: [[TBAA0]] = !{[[LOOP1]], [[LOOP1]], i64 0}
; CHECK: [[LOOP1]] = !{!"scalar type", [[META2:![0-9]+]]}
More information about the llvm-commits
mailing list