Files
clang-p2996/llvm/test/Transforms/Inline/externally_available.ll
Sebastian Peryt 98190d2122 [NFC][3/n] Remove enable-new-pm from Inline tests
This change is updating remaining Inline tests
by removing -enable-new-pm=0 flag and adjusting CHECKs
where it is required.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D135497
2022-10-10 13:42:42 -07:00

24 lines
395 B
LLVM

; RUN: opt < %s -inline -S | FileCheck %s
define available_externally i32 @test_function() {
; CHECK-NOT: @test_function
entry:
ret i32 4
}
define i32 @result() {
; CHECK-LABEL: define i32 @result()
entry:
%A = call i32 @test_function()
; CHECK-NOT: call
; CHECK-NOT: @test_function
%B = add i32 %A, 1
ret i32 %B
; CHECK: add i32
; CHECK-NEXT: ret i32
}
; CHECK-NOT: @test_function