two changes: 1) make AliasSet hold the list of call sites with an
authorChris Lattner <sabre@nondot.org>
Sun, 29 Aug 2010 18:42:23 +0000 (18:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Aug 2010 18:42:23 +0000 (18:42 +0000)
commitcb7f65342291caa3636cb50c0ee04b383cd79f8d
tree22dc8165df04b3500e6eb4b2120d082e9bd79957
parent0de5cad74d8d2987b92b8d76af3f1eab988b3c7b
two changes: 1) make AliasSet hold the list of call sites with an
assertingvh so we get a violent explosion if the pointer dangles.

2) Fix AliasSetTracker::deleteValue to remove call sites with
   by-pointer comparisons instead of by-alias queries.  Using
   findAliasSetForCallSite can cause alias sets to get merged
   when they shouldn't, and can also miss alias sets when the
   call is readonly.

#2 fixes PR6889, which only repros with a .c file :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112452 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/AliasSetTracker.h
lib/Analysis/AliasSetTracker.cpp
lib/Transforms/Scalar/LICM.cpp