1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Experiments show that looking through phi nodes

and select instructions doesn't buy anything here
except extra complexity: the only difference in
the entire testsuite was that a readonly function
became readnone in MiBench/consumer-typeset.  Add
a comment about this.

llvm-svn: 61478
This commit is contained in:
Duncan Sands 2008-12-29 20:51:17 +00:00
parent 00d6a6ed4e
commit 488fe8b8a2

View File

@ -64,6 +64,8 @@ bool AddReadAttrs::PointsToLocalMemory(Value *V) {
// A global constant counts as local memory for our purposes.
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
return GV->isConstant();
// Could look through phi nodes and selects here, but it doesn't seem
// to be useful in practice.
return false;
}