Get rid of the getPointeeAlignment helper function from
authorEli Friedman <eli.friedman@gmail.com>
Mon, 26 Nov 2012 23:04:53 +0000 (23:04 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 26 Nov 2012 23:04:53 +0000 (23:04 +0000)
commit0c617e6026c9b1521aab100662f5c3664dda1768
treeb511eef7a8fd485ee5ad32154d35074df1440b83
parent1243922fc1a1e3d2681ed9e78503eeabd875ba93
Get rid of the getPointeeAlignment helper function from
InstCombineLoadStoreAlloca.cpp, which had many issues.
(At least two bugs were noted on llvm-commits, and it was overly conservative.)
Instead, use getOrEnforceKnownAlignment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168629 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
test/Transforms/InstCombine/memcpy-from-global.ll