mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
6909ecf66e
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. llvm-svn: 118412
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
|
|
}
|