Added ConstantExpr support to CFLAA.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 10 Mar 2015 02:58:15 +0000 (02:58 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 10 Mar 2015 02:58:15 +0000 (02:58 +0000)
commitd8bd7ce2ca96717ac540adb56b4b8c69e3adbe11
tree8ffa95b93010bb49c04213ab57a8cdaa2457c116
parent456a54a2df52d03ee115e6b762b50808172958f5
Added ConstantExpr support to CFLAA.

CFLAA didn't know how to properly handle ConstantExprs; it would silently
ignore them. This was a problem if the ConstantExpr is, say, a GEP of a global,
because CFLAA wouldn't realize that there's a global there. :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231743 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFLAliasAnalysis.cpp
test/Analysis/CFLAliasAnalysis/asm-global-bugfix.ll
test/Analysis/CFLAliasAnalysis/const-expr-gep.ll
test/Analysis/CFLAliasAnalysis/stratified-attrs-indexing.ll