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
19 lines
411 B
LLVM
19 lines
411 B
LLVM
; RUN: opt < %s -function-attrs -S | FileCheck %s
|
|
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
|
|
|
|
; CHECK: Function Attrs
|
|
; CHECK-SAME: readnone
|
|
; CHECK-NEXT: define i32 @a
|
|
define i32 @a() {
|
|
%tmp = call i32 @b( ) ; <i32> [#uses=1]
|
|
ret i32 %tmp
|
|
}
|
|
|
|
; CHECK: Function Attrs
|
|
; CHECK-SAME: readnone
|
|
; CHECK-NEXT: define i32 @b
|
|
define i32 @b() {
|
|
%tmp = call i32 @a( ) ; <i32> [#uses=1]
|
|
ret i32 %tmp
|
|
}
|