mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
1571dfc883
chaining and simplify FunctionAttrs' GetModRefBehavior logic. llvm-svn: 118660
10 lines
180 B
LLVM
10 lines
180 B
LLVM
; RUN: opt < %s -basicaa -functionattrs -S | grep readonly | count 2
|
|
|
|
define i32 @f() {
|
|
entry:
|
|
%tmp = call i32 @e( ) ; <i32> [#uses=1]
|
|
ret i32 %tmp
|
|
}
|
|
|
|
declare i32 @e() readonly
|