[PM/AA] Stop getting the TargetLibraryInfo out of the AliasAnalysis and
authorChandler Carruth <chandlerc@gmail.com>
Wed, 12 Aug 2015 18:01:44 +0000 (18:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 12 Aug 2015 18:01:44 +0000 (18:01 +0000)
commitdbe40fb45e65a9120899755a5cc5387c065d909c
treee46b4d4244a8d8e99996944d5d9d237f1e7127b0
parent71d29acecd245fb62d7f1f5900505c94df09618a
[PM/AA] Stop getting the TargetLibraryInfo out of the AliasAnalysis and
just depend on it directly.

This was particularly frustrating because there was a really wide
mixture of using a member variable and re-extracting it from the AA that
happened to be around. I think the result is much more clear.

I've also deleted all of the pointless null checks and used references
across the APIs where I could to make it explicit that this cannot be
null in a useful fashion.

llvm-svn: 244780
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp