[llvm] f804249 - [DSE] Regenerate test checks (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 23 00:46:10 PST 2021
Author: Nikita Popov
Date: 2021-12-23T09:31:44+01:00
New Revision: f8042492fe2aa5f13457cb6eda2dc940ad7dc2e9
URL: https://github.com/llvm/llvm-project/commit/f8042492fe2aa5f13457cb6eda2dc940ad7dc2e9
DIFF: https://github.com/llvm/llvm-project/commit/f8042492fe2aa5f13457cb6eda2dc940ad7dc2e9.diff
LOG: [DSE] Regenerate test checks (NFC)
Added:
Modified:
llvm/test/Transforms/DeadStoreElimination/invariant.start.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/DeadStoreElimination/invariant.start.ll b/llvm/test/Transforms/DeadStoreElimination/invariant.start.ll
index 27400cd4ed16..f00001f967e6 100644
--- a/llvm/test/Transforms/DeadStoreElimination/invariant.start.ll
+++ b/llvm/test/Transforms/DeadStoreElimination/invariant.start.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; Test to make sure llvm.invariant.start calls are not treated as clobbers.
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
@@ -6,29 +7,31 @@ declare {}* @llvm.invariant.start.p0i8(i64, i8* nocapture) nounwind readonly
; We cannot remove the store 1 to %p.
; FIXME: By the semantics of invariant.start, the store 3 to p is unreachable.
define void @test(i8 *%p) {
+; CHECK-LABEL: @test(
+; CHECK-NEXT: store i8 1, i8* [[P:%.*]], align 4
+; CHECK-NEXT: [[I:%.*]] = call {}* @llvm.invariant.start.p0i8(i64 1, i8* [[P]])
+; CHECK-NEXT: store i8 3, i8* [[P]], align 4
+; CHECK-NEXT: ret void
+;
store i8 1, i8* %p, align 4
%i = call {}* @llvm.invariant.start.p0i8(i64 1, i8* %p)
store i8 3, i8* %p, align 4
ret void
-; CHECK-LABEL: @test(
-; CHECK-NEXT: store i8 1, i8* %p, align 4
-; CHECK-NEXT: %i = call {}* @llvm.invariant.start.p0i8(i64 1, i8* %p)
-; CHECK-NEXT: store i8 3, i8* %p, align 4
-; CHECK-NEXT: ret void
}
; FIXME: We should be able to remove the first store to p, even though p and q
; may alias.
define void @test2(i8* %p, i8* %q) {
+; CHECK-LABEL: @test2(
+; CHECK-NEXT: store i8 1, i8* [[P:%.*]], align 4
+; CHECK-NEXT: store i8 2, i8* [[Q:%.*]], align 4
+; CHECK-NEXT: [[I:%.*]] = call {}* @llvm.invariant.start.p0i8(i64 1, i8* [[Q]])
+; CHECK-NEXT: store i8 3, i8* [[P]], align 4
+; CHECK-NEXT: ret void
+;
store i8 1, i8* %p, align 4
store i8 2, i8* %q, align 4
%i = call {}* @llvm.invariant.start.p0i8(i64 1, i8* %q)
store i8 3, i8* %p, align 4
ret void
-; CHECK-LABEL: @test2(
-; CHECK-NEXT: store i8 1, i8* %p, align 4
-; CHECK-NEXT: store i8 2, i8* %q, align 4
-; CHECK-NEXT: %i = call {}* @llvm.invariant.start.p0i8(i64 1, i8* %q)
-; CHECK-NEXT: store i8 3, i8* %p, align 4
-; CHECK-NEXT: ret void
}
More information about the llvm-commits
mailing list