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)
commit11c06ea55a060d5460f716b00ca593e5dd829b17
tree5e1319ee98cdd3e45f98ec4f22b2c5eefafcd0a9
parentb1b208a1f514ccb90b5afba0af49d6aa39dee21b
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.

llvm-svn: 282338
llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp