summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachinePostDominators.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-09-24 02:30:11 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-09-24 02:30:11 +0000
commitc82c11428e0ab2ff58a342ca3a615315929a2633 (patch)
treea18b5d30fcbf08ade38d7fd0cfaa25cc2fd2e691 /llvm/lib/CodeGen/MachinePostDominators.cpp
parentafad84c04b4a6a7ec2d5ac56cf9022e488f875bb (diff)
downloadbcm5719-llvm-c82c11428e0ab2ff58a342ca3a615315929a2633.tar.gz
bcm5719-llvm-c82c11428e0ab2ff58a342ca3a615315929a2633.zip
GlobalStatus: Don't walk use-lists of ConstantData
Return early from llvm::isSafeToDestroyConstant() whenever the value `isa<ConstantData>()`. These constants are shared across the LLVMContext. We never really want to delete them here, and walking their use-lists can be very expensive. (This is motivated by an eventual goal of removing use-lists entirely from ConstantData.) llvm-svn: 282320
Diffstat (limited to 'llvm/lib/CodeGen/MachinePostDominators.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud