summaryrefslogtreecommitdiffstats
path: root/clang/test/ASTMerge/Inputs/enum2.c
diff options
context:
space:
mode:
authorTobias Edler von Koch <tobias@codeaurora.org>2015-07-15 19:32:22 +0000
committerTobias Edler von Koch <tobias@codeaurora.org>2015-07-15 19:32:22 +0000
commitd8ce16b1e6794b2a514cb71b9edb967e7509c561 (patch)
treedfb6000f58228fd9f513a738e3bc4f5ccdb9133d /clang/test/ASTMerge/Inputs/enum2.c
parente271658ec1d7ef546d44c70f72baaa26d5903cec (diff)
downloadbcm5719-llvm-d8ce16b1e6794b2a514cb71b9edb967e7509c561.tar.gz
bcm5719-llvm-d8ce16b1e6794b2a514cb71b9edb967e7509c561.zip
Analyze recursive PHI nodes in BasicAA
Summary: This patch allows phi nodes like %x = phi [ %incptr, ... ] [ %var, ... ] %incptr = getelementptr %x, 1 to be analyzed by BasicAliasAnalysis. In aliasPHI, we can detect incoming values that are recursive GEPs with a constant offset. Instead of trying to analyze a recursive GEP (and failing), we now ignore it and instead set the size of the memory referenced by the PHINode to UnknownSize. This represents all the possible memory locations the pointer represented by the PHINode could be advanced to by the GEP. For now, this new behavior is turned off by default to allow debugging of performance degradations seen with SPEC/x86 and Hexagon benchmarks. The flag -basicaa-recphi turns it on. Reviewers: hfinkel, sanjoy Subscribers: tobiasvk_caf, sanjoy, llvm-commits Differential Revision: http://reviews.llvm.org/D10368 llvm-svn: 242320
Diffstat (limited to 'clang/test/ASTMerge/Inputs/enum2.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud