[PATCH] D120207: [ArgPromotion] Regenerate test checks for crash.ll - removed ALL_NEWPM prefix.

Valery Pykhtin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 20 04:31:12 PST 2022


vpykhtin created this revision.
vpykhtin added reviewers: mtrofin, jdoerfert.
vpykhtin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When auto-updating test checks for ArgumentPromotion I found out that ALL_NEWPM prefix is not used anymore in crash.ll and removed it, please take a look if this is valid.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120207

Files:
  llvm/test/Transforms/ArgumentPromotion/crash.ll


Index: llvm/test/Transforms/ArgumentPromotion/crash.ll
===================================================================
--- llvm/test/Transforms/ArgumentPromotion/crash.ll
+++ llvm/test/Transforms/ArgumentPromotion/crash.ll
@@ -1,13 +1,13 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes
 ; RUN: opt -S < %s -inline -argpromotion | FileCheck %s --check-prefix=ARGPROMOTION
-; RUN: opt -S < %s -passes=inline,argpromotion | FileCheck %s --check-prefixes=ARGPROMOTION,ALL_NEWPM
+; RUN: opt -S < %s -passes=inline,argpromotion | FileCheck %s --check-prefix=ARGPROMOTION
 
 %S = type { %S* }
 
 ; Inlining should nuke the invoke (and any inlined calls) here even with
 ; argument promotion running along with it.
 define void @zot() personality i32 (...)* @wibble {
-; ARGPROMOTION-LABEL: define {{[^@]+}}@zot() personality i32 (...)* @wibble
+; ARGPROMOTION-LABEL: define {{[^@]+}}@zot() personality i32 (...)* @wibble {
 ; ARGPROMOTION-NEXT:  bb:
 ; ARGPROMOTION-NEXT:    unreachable
 ; ARGPROMOTION:       hoge.exit:
@@ -45,9 +45,9 @@
 }
 
 define internal i1 @eggs(i8* %arg) {
-; ALL_NEWPM-LABEL: define {{[^@]+}}@eggs()
-; ALL_NEWPM-NEXT:  bb:
-; ALL_NEWPM-NEXT:    unreachable
+; ARGPROMOTION-LABEL: define {{[^@]+}}@eggs() {
+; ARGPROMOTION-NEXT:  bb:
+; ARGPROMOTION-NEXT:    unreachable
 ;
 bb:
   %tmp = call zeroext i1 @barney(i8* %arg)
@@ -61,10 +61,10 @@
 
 define i32 @test_inf_promote_caller(i32 %arg) {
 ; ARGPROMOTION-LABEL: define {{[^@]+}}@test_inf_promote_caller
-; ARGPROMOTION-SAME: (i32 [[ARG:%.*]])
+; ARGPROMOTION-SAME: (i32 [[ARG:%.*]]) {
 ; ARGPROMOTION-NEXT:  bb:
-; ARGPROMOTION-NEXT:    [[TMP:%.*]] = alloca [[S:%.*]]
-; ARGPROMOTION-NEXT:    [[TMP1:%.*]] = alloca [[S]]
+; ARGPROMOTION-NEXT:    [[TMP:%.*]] = alloca [[S:%.*]], align 8
+; ARGPROMOTION-NEXT:    [[TMP1:%.*]] = alloca [[S]], align 8
 ; ARGPROMOTION-NEXT:    [[TMP2:%.*]] = call i32 @test_inf_promote_callee(%S* [[TMP]], %S* [[TMP1]])
 ; ARGPROMOTION-NEXT:    ret i32 0
 ;
@@ -78,12 +78,12 @@
 
 define internal i32 @test_inf_promote_callee(%S* %arg, %S* %arg1) {
 ; ARGPROMOTION-LABEL: define {{[^@]+}}@test_inf_promote_callee
-; ARGPROMOTION-SAME: (%S* [[ARG:%.*]], %S* [[ARG1:%.*]])
+; ARGPROMOTION-SAME: (%S* [[ARG:%.*]], %S* [[ARG1:%.*]]) {
 ; ARGPROMOTION-NEXT:  bb:
 ; ARGPROMOTION-NEXT:    [[TMP:%.*]] = getelementptr [[S:%.*]], %S* [[ARG1]], i32 0, i32 0
-; ARGPROMOTION-NEXT:    [[TMP2:%.*]] = load %S*, %S** [[TMP]]
+; ARGPROMOTION-NEXT:    [[TMP2:%.*]] = load %S*, %S** [[TMP]], align 8
 ; ARGPROMOTION-NEXT:    [[TMP3:%.*]] = getelementptr [[S]], %S* [[ARG]], i32 0, i32 0
-; ARGPROMOTION-NEXT:    [[TMP4:%.*]] = load %S*, %S** [[TMP3]]
+; ARGPROMOTION-NEXT:    [[TMP4:%.*]] = load %S*, %S** [[TMP3]], align 8
 ; ARGPROMOTION-NEXT:    [[TMP5:%.*]] = call i32 @test_inf_promote_callee(%S* [[TMP4]], %S* [[TMP2]])
 ; ARGPROMOTION-NEXT:    ret i32 0
 ;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120207.410142.patch
Type: text/x-patch
Size: 2935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220220/1385ae8d/attachment.bin>


More information about the llvm-commits mailing list