mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
42c31a7073
chaining and simplify FunctionAttrs' GetModRefBehavior logic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118660 91177308-0d34-0410-b5e6-96231b3b80d8
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
|