summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-09-12 07:29:58 +0000
committerDuncan Sands <baldrick@free.fr>2008-09-12 07:29:58 +0000
commit06dbb126e6733f9b9963ce435a33b559e14c35d4 (patch)
tree57146de6350fb7dfbcb38cc10fb64eb172a0651d /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentd3f0d9b07ca0eaee3f3a46f5f963b913cad85bce (diff)
downloadbcm5719-llvm-06dbb126e6733f9b9963ce435a33b559e14c35d4.tar.gz
bcm5719-llvm-06dbb126e6733f9b9963ce435a33b559e14c35d4.zip
Rather than marking all internal globals "Ref"
when a readonly declaration is called, set a flag. This is faster and uses less memory. In theory it is less accurate, because before only those internal globals that were read by someone were being marked "Ref", but now all are. But in practice, thanks to other passes, all internal globals of the kind considered here will be both read and stored to: those only read will have been turned into constants, and those only stored to will have been deleted. llvm-svn: 56143
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud