OSDN Git Service

ObjCARC: Don't look at users of ConstantData
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 24 Sep 2016 21:01:20 +0000 (21:01 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 24 Sep 2016 21:01:20 +0000 (21:01 +0000)
commitaffe79938b9001bad5717a2990ec3d84c2b80b16
tree4ffb2cb4df5038b11520b0e80cd39b454c60e091
parent5cb29541603a97167a07afe8ac6bd59e863bf2d1
ObjCARC: Don't look at users of ConstantData

Stop looking at users of UndefValue and ConstantPointerNull in the
objective C ARC optimizers.  The other users aren't actually
interesting, since they're not pointing at a particular object.  I
imagine these calls could be optimized through -instcombine... maybe
they already are?

These early returns will be required at some point in the future, with a
WIP patch that asserts when someone accesses a use-list on ConstantData.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282338 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/ObjCARC/ObjCARCOpts.cpp