Revert "Revert r236894 "[BasicAA] Fix zext & sext handling""
authorHal Finkel <hfinkel@anl.gov>
Sat, 11 Jul 2015 11:04:54 +0000 (11:04 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 11 Jul 2015 11:04:54 +0000 (11:04 +0000)
commit1e3fa768c015a49badff70981df27cf978f5c199
tree04abcf0d273761e11b081694f324b34261cf8ae6
parent4e947d81119638c7beafe8ff5b776f4c5ce848b1
Revert "Revert r236894 "[BasicAA] Fix zext & sext handling""

r236894 caused PR23626 (Clang miscompiles webkit's base64 decoder), and was
reverted in r237984. This reapplies the patch with an additional test case for
PR23626 and the associated fix (both scales and offsets in the
BasicAliasAnalysis::constantOffsetHeuristic should initially be zero).

Patch by Nick White, thanks!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241981 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BasicAliasAnalysis.cpp
test/Analysis/BasicAA/bug.23540.ll [new file with mode: 0644]
test/Analysis/BasicAA/q.bad.ll [new file with mode: 0644]