[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)
commit4106edc0aaeddabcbbc7304bb8059a7e79864088
treea715ab81e1e036ef82b514929aa3440dd0939c1d
parent5f53aadd9c9fa073ce5eabc630002b77f9663cf9
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244780 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp