68 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 52; RUN: llc %s -mtriple=aarch64 -stop-after=finalize-isel -o - | FileCheck --check-prefix=MIR %s3 4; Ensure the scoped AA metadata is still retained after store merging.5 6; MIR-DAG: ![[DOMAIN:[0-9]+]] = distinct !{!{{[0-9]+}}, !"domain"}7; MIR-DAG: ![[SCOPE0:[0-9]+]] = distinct !{!{{[0-9]+}}, ![[DOMAIN]], !"scope 0"}8; MIR-DAG: ![[SCOPE1:[0-9]+]] = distinct !{!{{[0-9]+}}, ![[DOMAIN]], !"scope 1"}9; MIR-DAG: ![[SCOPE2:[0-9]+]] = distinct !{!{{[0-9]+}}, ![[DOMAIN]], !"scope 2"}10; MIR-DAG: ![[SCOPE3:[0-9]+]] = distinct !{!{{[0-9]+}}, ![[DOMAIN]], !"scope 3"}11; MIR-DAG: ![[SET0:[0-9]+]] = !{![[SCOPE0]]}12; MIR-DAG: ![[SET1:[0-9]+]] = !{![[SCOPE1]]}13; MIR-DAG: ![[SET2:[0-9]+]] = !{![[SCOPE2]]}14; MIR-DAG: ![[SET3:[0-9]+]] = !{![[SCOPE3]]}15 16define void @blam0(ptr %g0, ptr %g1) {17 ; MIR-LABEL: name: blam018 ; MIR: bb.0 (%ir-block.0):19 ; MIR-NEXT: liveins: $x0, $x120 ; MIR-NEXT: {{ $}}21 ; MIR-NEXT: [[COPY:%[0-9]+]]:gpr64common = COPY $x122 ; MIR-NEXT: [[COPY1:%[0-9]+]]:gpr64common = COPY $x023 ; MIR-NEXT: [[LDRDui:%[0-9]+]]:fpr64 = LDRDui [[COPY1]], 0 :: (load (s64) from %ir.g0, align 4, !alias.scope !0, !noalias !3)24 ; MIR-NEXT: STRDui killed [[LDRDui]], [[COPY]], 0 :: (store (s64) into %ir.tmp41, align 4, !alias.scope !3, !noalias !0)25 ; MIR-NEXT: RET_ReallyLR26 %tmp4 = getelementptr inbounds <3 x float>, ptr %g1, i64 0, i64 027 %tmp5 = load <3 x float>, ptr %g0, align 4, !alias.scope !0, !noalias !128 %tmp6 = extractelement <3 x float> %tmp5, i64 029 store float %tmp6, ptr %tmp4, align 4, !alias.scope !1, !noalias !030 %tmp7 = getelementptr inbounds float, ptr %tmp4, i64 131 %tmp8 = load <3 x float>, ptr %g0, align 4, !alias.scope !0, !noalias !132 %tmp9 = extractelement <3 x float> %tmp8, i64 133 store float %tmp9, ptr %tmp7, align 4, !alias.scope !1, !noalias !034 ret void;35}36 37; Ensure new scoped AA metadata are calculated after merging stores.38define void @blam1(ptr %g0, ptr %g1) {39 ; MIR-LABEL: name: blam140 ; MIR: bb.0 (%ir-block.0):41 ; MIR-NEXT: liveins: $x0, $x142 ; MIR-NEXT: {{ $}}43 ; MIR-NEXT: [[COPY:%[0-9]+]]:gpr64common = COPY $x144 ; MIR-NEXT: [[COPY1:%[0-9]+]]:gpr64common = COPY $x045 ; MIR-NEXT: [[LDRDui:%[0-9]+]]:fpr64 = LDRDui [[COPY1]], 0 :: (load (s64) from %ir.g0, align 4, !alias.scope !0, !noalias !3)46 ; MIR-NEXT: STRDui killed [[LDRDui]], [[COPY]], 0 :: (store (s64) into %ir.tmp41, align 4, !alias.scope !9, !noalias !10)47 ; MIR-NEXT: RET_ReallyLR48 %tmp4 = getelementptr inbounds <3 x float>, ptr %g1, i64 0, i64 049 %tmp5 = load <3 x float>, ptr %g0, align 4, !alias.scope !0, !noalias !150 %tmp6 = extractelement <3 x float> %tmp5, i64 051 store float %tmp6, ptr %tmp4, align 4, !alias.scope !1, !noalias !052 %tmp7 = getelementptr inbounds float, ptr %tmp4, i64 153 %tmp8 = load <3 x float>, ptr %g0, align 4, !alias.scope !0, !noalias !154 %tmp9 = extractelement <3 x float> %tmp8, i64 155 store float %tmp9, ptr %tmp7, align 4, !alias.scope !5, !noalias !656 ret void;57}58 59!0 = !{!2}60!1 = !{!3}61!2 = !{!2, !4, !"scope 0"}62!3 = !{!3, !4, !"scope 1"}63!4 = !{!4, !"domain"}64!5 = !{!7}65!6 = !{!8}66!7 = !{!7, !4, !"scope 2"}67!8 = !{!8, !4, !"scope 3"}68