mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
8a584da153
To match NewPM pass name, and also for readability. Also rename rpo-functionattrs -> rpo-function-attrs while we're here. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D84694
21 lines
406 B
LLVM
21 lines
406 B
LLVM
; RUN: opt -S -function-attrs < %s | FileCheck %s
|
|
; RUN: opt -S -passes=function-attrs < %s | FileCheck %s
|
|
|
|
@i = global i32 0
|
|
|
|
define void @foo() {
|
|
; CHECK-LABEL: define void @foo() #0 {
|
|
store i32 1, i32* @i
|
|
call void @bar()
|
|
ret void
|
|
}
|
|
|
|
define void @bar() {
|
|
; CHECK-LABEL: define void @bar() #0 {
|
|
%i = load i32, i32* @i
|
|
call void @foo()
|
|
ret void
|
|
}
|
|
|
|
; CHECK: attributes #0 = { nofree nounwind }
|