[llvm] abe21da - [Tests] Fix noalias metadata in one more test
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 18 12:18:01 PDT 2021
Author: Nikita Popov
Date: 2021-09-18T21:17:05+02:00
New Revision: abe21da670f9bcadcb0af6f97a25e1faf9e0b133
URL: https://github.com/llvm/llvm-project/commit/abe21da670f9bcadcb0af6f97a25e1faf9e0b133
DIFF: https://github.com/llvm/llvm-project/commit/abe21da670f9bcadcb0af6f97a25e1faf9e0b133.diff
LOG: [Tests] Fix noalias metadata in one more test
Missed this one in 80110aafa09aff9869cdb50ed718a169888da578. This
is another test mixing up alias scopes and alias scope lists.
Added:
Modified:
llvm/test/Transforms/InstCombine/noalias-scope-decl.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/noalias-scope-decl.ll b/llvm/test/Transforms/InstCombine/noalias-scope-decl.ll
index 1251579e596c..88708b201f02 100644
--- a/llvm/test/Transforms/InstCombine/noalias-scope-decl.ll
+++ b/llvm/test/Transforms/InstCombine/noalias-scope-decl.ll
@@ -28,12 +28,12 @@ define void @test02_keep(i8* %ptr0, i8* %ptr1) {
define void @test03(i8* %ptr0, i8* %ptr1) {
; CHECK-LABEL: @test03(
-; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !alias.scope !4
+; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !alias.scope !5
; CHECK-NEXT: store i8 43, i8* [[PTR1:%.*]], align 1, !noalias !3
; CHECK-NEXT: ret void
;
call void @llvm.experimental.noalias.scope.decl(metadata !0)
- store i8 42, i8* %ptr0, !alias.scope !4
+ store i8 42, i8* %ptr0, !alias.scope !3
store i8 43, i8* %ptr1, !noalias !5
ret void
}
@@ -67,35 +67,35 @@ define void @test05_keep(i8* %ptr0, i8* %ptr1) {
define void @test06(i8* %ptr0, i8* %ptr1) {
; CHECK-LABEL: @test06(
; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !alias.scope !3
-; CHECK-NEXT: store i8 43, i8* [[PTR1:%.*]], align 1, !noalias !4
+; CHECK-NEXT: store i8 43, i8* [[PTR1:%.*]], align 1, !noalias !5
; CHECK-NEXT: ret void
;
call void @llvm.experimental.noalias.scope.decl(metadata !0)
store i8 42, i8* %ptr0, !alias.scope !5
- store i8 43, i8* %ptr1, !noalias !4
+ store i8 43, i8* %ptr1, !noalias !3
ret void
}
define void @test07(i8* %ptr0, i8* %ptr1) {
; CHECK-LABEL: @test07(
; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !alias.scope !0
-; CHECK-NEXT: store i8 43, i8* [[PTR1:%.*]], align 1, !noalias !4
+; CHECK-NEXT: store i8 43, i8* [[PTR1:%.*]], align 1, !noalias !5
; CHECK-NEXT: ret void
;
call void @llvm.experimental.noalias.scope.decl(metadata !0)
store i8 42, i8* %ptr0, !alias.scope !0
- store i8 43, i8* %ptr1, !noalias !4
+ store i8 43, i8* %ptr1, !noalias !3
ret void
}
define void @test08(i8* %ptr0, i8* %ptr1) {
; CHECK-LABEL: @test08(
-; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !alias.scope !4
+; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !alias.scope !5
; CHECK-NEXT: store i8 43, i8* [[PTR1:%.*]], align 1, !noalias !0
; CHECK-NEXT: ret void
;
call void @llvm.experimental.noalias.scope.decl(metadata !0)
- store i8 42, i8* %ptr0, !alias.scope !4
+ store i8 42, i8* %ptr0, !alias.scope !3
store i8 43, i8* %ptr1, !noalias !0
ret void
}
@@ -112,11 +112,11 @@ define void @test11(i8* %ptr0) {
define void @test12(i8* %ptr0) {
; CHECK-LABEL: @test12(
-; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !alias.scope !4
+; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !alias.scope !5
; CHECK-NEXT: ret void
;
call void @llvm.experimental.noalias.scope.decl(metadata !0)
- store i8 42, i8* %ptr0, !alias.scope !4
+ store i8 42, i8* %ptr0, !alias.scope !3
ret void
}
@@ -142,11 +142,11 @@ define void @test14(i8* %ptr0) {
define void @test15(i8* %ptr0) {
; CHECK-LABEL: @test15(
-; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !noalias !4
+; CHECK-NEXT: store i8 42, i8* [[PTR0:%.*]], align 1, !noalias !5
; CHECK-NEXT: ret void
;
call void @llvm.experimental.noalias.scope.decl(metadata !0)
- store i8 42, i8* %ptr0, !noalias !4
+ store i8 42, i8* %ptr0, !noalias !3
ret void
}
More information about the llvm-commits
mailing list