[llvm] e775c92 - [LICM] Regenerate test checks (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 17 09:17:21 PDT 2023
Author: Nikita Popov
Date: 2023-03-17T17:17:13+01:00
New Revision: e775c926dfdc9f7f578cbe6c4e0465d228f77a38
URL: https://github.com/llvm/llvm-project/commit/e775c926dfdc9f7f578cbe6c4e0465d228f77a38
DIFF: https://github.com/llvm/llvm-project/commit/e775c926dfdc9f7f578cbe6c4e0465d228f77a38.diff
LOG: [LICM] Regenerate test checks (NFC)
Added:
Modified:
llvm/test/Transforms/LICM/2011-04-06-PromoteResultOfPromotion.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/LICM/2011-04-06-PromoteResultOfPromotion.ll b/llvm/test/Transforms/LICM/2011-04-06-PromoteResultOfPromotion.ll
index 69a82d8444b55..33027189dc5c0 100644
--- a/llvm/test/Transforms/LICM/2011-04-06-PromoteResultOfPromotion.ll
+++ b/llvm/test/Transforms/LICM/2011-04-06-PromoteResultOfPromotion.ll
@@ -1,15 +1,29 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
; RUN: opt < %s -passes=licm -S | FileCheck %s
; PR9634
@g_58 = common global i32 0, align 4
@g_116 = common global ptr null, align 8
-define void @f() nounwind {
-
-; CHECK: entry:
-; CHECK: alloca [9 x i16]
-; CHECK: load i32, ptr @g_58
-; CHECK: br label %for.body
+define void @f() {
+; CHECK-LABEL: define void @f() {
+; CHECK-NEXT: entry:
+; CHECK-NEXT: [[L_87_I:%.*]] = alloca [9 x i16], align 16
+; CHECK-NEXT: [[G_58_PROMOTED:%.*]] = load i32, ptr @g_58, align 4, !tbaa [[TBAA0:![0-9]+]]
+; CHECK-NEXT: br label [[FOR_BODY:%.*]]
+; CHECK: for.body:
+; CHECK-NEXT: [[TMP31:%.*]] = phi i32 [ [[G_58_PROMOTED]], [[ENTRY:%.*]] ], [ [[OR:%.*]], [[FOR_BODY]] ]
+; CHECK-NEXT: [[INC12:%.*]] = phi i32 [ 0, [[ENTRY]] ], [ [[INC:%.*]], [[FOR_BODY]] ]
+; CHECK-NEXT: [[OR]] = or i32 [[TMP31]], 10
+; CHECK-NEXT: [[INC]] = add nsw i32 [[INC12]], 1
+; CHECK-NEXT: [[CMP:%.*]] = icmp slt i32 [[INC]], 4
+; CHECK-NEXT: br i1 [[CMP]], label [[FOR_BODY]], label [[FOR_END:%.*]]
+; CHECK: for.end:
+; CHECK-NEXT: [[OR_LCSSA:%.*]] = phi i32 [ [[OR]], [[FOR_BODY]] ]
+; CHECK-NEXT: store ptr @g_58, ptr @g_116, align 8, !tbaa [[TBAA4:![0-9]+]]
+; CHECK-NEXT: store i32 [[OR_LCSSA]], ptr @g_58, align 4, !tbaa [[TBAA0]]
+; CHECK-NEXT: ret void
+;
entry:
%l_87.i = alloca [9 x i16], align 16
More information about the llvm-commits
mailing list