[llvm] 36014a7 - [InstCombine] auto-generate test CHECK lines; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 20 11:06:05 PST 2023
Author: Sanjay Patel
Date: 2023-02-20T14:04:03-05:00
New Revision: 36014a71ebd03fba5ba95c7ac05500240436cad4
URL: https://github.com/llvm/llvm-project/commit/36014a71ebd03fba5ba95c7ac05500240436cad4
DIFF: https://github.com/llvm/llvm-project/commit/36014a71ebd03fba5ba95c7ac05500240436cad4.diff
LOG: [InstCombine] auto-generate test CHECK lines; NFC
The check line was not enabled until bfb1559fbe2fb656f3,
and then it was excessive, so the test started failing.
Added:
Modified:
llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll b/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll
index 95a3f5abfa43..2fbdd802b46b 100644
--- a/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll
+++ b/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll
@@ -1,12 +1,20 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
define void @f(i16 %y) {
+; CHECK-LABEL: define {{[^@]+}}@f
+; CHECK-SAME: (i16 [[Y:%.*]]) {
+; CHECK-NEXT: ret void
+;
ret void
}
define i32 @g(i32 %y) {
-; CHECK-LABEL: @g(
-; CHECK-NEXT: %x = call i32 @f(i32 %y) ; <i32> [#uses=1]
- %x = call i32 @f( i32 %y ) ; <i32> [#uses=1]
+; CHECK-LABEL: define {{[^@]+}}@g
+; CHECK-SAME: (i32 [[Y:%.*]]) {
+; CHECK-NEXT: [[X:%.*]] = call i32 @f(i32 [[Y]])
+; CHECK-NEXT: ret i32 [[X]]
+;
+ %x = call i32 @f( i32 %y )
ret i32 %x
}
More information about the llvm-commits
mailing list