Skip to content

Commit fb08c27

Browse files
committed
!fixup Don't use pattern to check unnamed function in call.
1 parent 7e0d0eb commit fb08c27

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

llvm/test/Transforms/MergeFunc/linkonce.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --include-generated-funcs --version 5
21
; RUN: opt -S -passes=mergefunc < %s | FileCheck %s -implicit-check-not=funA -implicit-check-not=funC
32

43
; Replacments should be totally ordered on the function name.
@@ -45,6 +44,6 @@ define linkonce i32 @funA(i32 %x, i32 %y) {
4544
;
4645
; CHECK-LABEL: define linkonce i32 @funB(
4746
; CHECK-SAME: i32 [[TMP0:%.*]], i32 [[TMP1:%.*]]) {
48-
; CHECK-NEXT: [[TMP3:%.*]] = tail call i32 @[[GLOB0:[0-9]+]](i32 [[TMP0]], i32 [[TMP1]])
47+
; CHECK-NEXT: [[TMP3:%.*]] = tail call i32 @0(i32 [[TMP0]], i32 [[TMP1]])
4948
; CHECK-NEXT: ret i32 [[TMP3]]
5049
;

llvm/test/Transforms/MergeFunc/linkonce_odr.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --include-generated-funcs --version 5
21
; RUN: opt -S -passes=mergefunc < %s | FileCheck %s -implicit-check-not=funA -implicit-check-not=funC
32

43
; Replacments should be totally ordered on the function name.
@@ -45,6 +44,6 @@ define linkonce_odr i32 @funA(i32 %x, i32 %y) {
4544
;
4645
; CHECK-LABEL: define linkonce_odr i32 @funB(
4746
; CHECK-SAME: i32 [[TMP0:%.*]], i32 [[TMP1:%.*]]) {
48-
; CHECK-NEXT: [[TMP3:%.*]] = tail call i32 @[[GLOB0:[0-9]+]](i32 [[TMP0]], i32 [[TMP1]])
47+
; CHECK-NEXT: [[TMP3:%.*]] = tail call i32 @0(i32 [[TMP0]], i32 [[TMP1]])
4948
; CHECK-NEXT: ret i32 [[TMP3]]
5049
;

0 commit comments

Comments
 (0)