diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-09-24 02:30:11 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-09-24 02:30:11 +0000 |
| commit | c82c11428e0ab2ff58a342ca3a615315929a2633 (patch) | |
| tree | a18b5d30fcbf08ade38d7fd0cfaa25cc2fd2e691 /llvm/lib/CodeGen/PatchableFunction.cpp | |
| parent | afad84c04b4a6a7ec2d5ac56cf9022e488f875bb (diff) | |
| download | bcm5719-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/PatchableFunction.cpp')
0 files changed, 0 insertions, 0 deletions

