[llvm] f2d9f84 - [SCCP][NFC] Regenerate test case
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 18 08:14:58 PDT 2023
Author: luxufan
Date: 2023-06-18T23:14:20+08:00
New Revision: f2d9f84b3f3293b2b639e73d2a5c2bd7e2fd71bc
URL: https://github.com/llvm/llvm-project/commit/f2d9f84b3f3293b2b639e73d2a5c2bd7e2fd71bc
DIFF: https://github.com/llvm/llvm-project/commit/f2d9f84b3f3293b2b639e73d2a5c2bd7e2fd71bc.diff
LOG: [SCCP][NFC] Regenerate test case
Added:
Modified:
llvm/test/Transforms/SCCP/overdefined-div.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/SCCP/overdefined-div.ll b/llvm/test/Transforms/SCCP/overdefined-div.ll
index 1c0d64587f59d..5f23d12037407 100644
--- a/llvm/test/Transforms/SCCP/overdefined-div.ll
+++ b/llvm/test/Transforms/SCCP/overdefined-div.ll
@@ -1,32 +1,43 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
; RUN: opt < %s -passes=sccp -S | FileCheck %s
; Test that SCCP has basic knowledge of when div can nuke overdefined values.
; 0 / X = 0 even if X is overdefined.
-; CHECK-LABEL: test1
-; CHECK-NEXT: ret i32 0
define i32 @test1(i32 %foo) {
+; CHECK-LABEL: define i32 @test1
+; CHECK-SAME: (i32 [[FOO:%.*]]) {
+; CHECK-NEXT: ret i32 0
+;
%tinkywinky = udiv i32 0, %foo
ret i32 %tinkywinky
}
-; CHECK-LABEL: test2
-; CHECK-NEXT: ret i32 0
define i32 @test2(i32 %foo) {
+; CHECK-LABEL: define i32 @test2
+; CHECK-SAME: (i32 [[FOO:%.*]]) {
+; CHECK-NEXT: ret i32 0
+;
%tinkywinky = sdiv i32 0, %foo
ret i32 %tinkywinky
}
-; CHECK-LABEL: test3
-; CHECK: ret i32 %tinkywinky
define i32 @test3(i32 %foo) {
+; CHECK-LABEL: define i32 @test3
+; CHECK-SAME: (i32 [[FOO:%.*]]) {
+; CHECK-NEXT: [[TINKYWINKY:%.*]] = udiv i32 [[FOO]], 0
+; CHECK-NEXT: ret i32 [[TINKYWINKY]]
+;
%tinkywinky = udiv i32 %foo, 0
ret i32 %tinkywinky
}
-; CHECK-LABEL: test4
-; CHECK: ret i32 %tinkywinky
define i32 @test4(i32 %foo) {
+; CHECK-LABEL: define i32 @test4
+; CHECK-SAME: (i32 [[FOO:%.*]]) {
+; CHECK-NEXT: [[TINKYWINKY:%.*]] = sdiv i32 [[FOO]], 0
+; CHECK-NEXT: ret i32 [[TINKYWINKY]]
+;
%tinkywinky = sdiv i32 %foo, 0
ret i32 %tinkywinky
}
More information about the llvm-commits
mailing list