mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
a25e5dbcc2
to optionally look for constant or local (alloca) memory. Teach BasicAliasAnalysis::pointsToConstantMemory to look through Select and Phi nodes, and to support looking for local memory. Remove FunctionAttrs' PointsToLocalOrConstantMemory function, now that AliasAnalysis knows all the tricks that it knew. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118412 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
176 B
LLVM
9 lines
176 B
LLVM
; RUN: opt < %s -basicaa -functionattrs -S | grep readnone
|
|
|
|
@s = external constant i8 ; <i8*> [#uses=1]
|
|
|
|
define i8 @f() {
|
|
%tmp = load i8* @s ; <i8> [#uses=1]
|
|
ret i8 %tmp
|
|
}
|