[LICM][NFC] Restructure pointer invalidation API in terms of MemoryLocation
authorPhilip Reames <listmail@philipreames.com>
Thu, 16 Aug 2018 20:11:15 +0000 (20:11 +0000)
committerPhilip Reames <listmail@philipreames.com>
Thu, 16 Aug 2018 20:11:15 +0000 (20:11 +0000)
commit0e2f9b9e30fedd13f8c68d92787fd636ea45c1ba
tree45ce4bd21a161207d375d96432266a01980a5a65
parent33ed57eebd408a5345b61c4075b730e990b70e62
[LICM][NFC] Restructure pointer invalidation API in terms of MemoryLocation

Main value is just simplifying code.  I'll further simply the argument handling case in a bit, but that involved a slightly orthogonal change so I went with the mildy ugly intermediate for this patch.

Note that the isSized check in the old LICM code was not carried across.  It turns out that check was dead.  a) no test exercised it, and b) langref and verifier had been updated to disallow unsized types used in loads.

llvm-svn: 339930
llvm/include/llvm/Analysis/AliasSetTracker.h
llvm/lib/Analysis/AliasSetTracker.cpp
llvm/lib/Transforms/Scalar/LICM.cpp