diff options
author | Nikolai Bozhenov <nikolai.bozhenov@intel.com> | 2017-04-18 13:29:26 +0000 |
---|---|---|
committer | Nikolai Bozhenov <nikolai.bozhenov@intel.com> | 2017-04-18 13:29:26 +0000 |
commit | 95fc644148348b6845d3a4e3fe02ee3cd2d8414b (patch) | |
tree | 1418d4f87e8eec4fb4ea73527214e595a2bf699f /clang/lib/Sema/SemaAttr.cpp | |
parent | 9e4a1c39db156fa2e663519fc3d0e93daba6ba48 (diff) | |
download | bcm5719-llvm-95fc644148348b6845d3a4e3fe02ee3cd2d8414b.tar.gz bcm5719-llvm-95fc644148348b6845d3a4e3fe02ee3cd2d8414b.zip |
Make globalaa-retained.ll test catching more cases.
Summary:
* Add checks for store. That is needed because GlobalsAA is called
twice in the current pipeline with different sets of Function passes
following it. However, the loads are eliminated using instcombine
which happens everywhere. On the other hand, DeadStoreElimination is
performed only once so by checking for store we'll be able to catch
more cases when GlobalsAA is invalidated unintentionally.
* Add empty function above/below the test so that we don't depend on
the relative order of instcombine/dead-store-elimination and the
pass that invalidates the analysis (inside the same
FunctionPassManager).
Reviewers: kristof.beyls
Reviewed By: kristof.beyls
Subscribers: llvm-commits, n.bozhenov
Differential Revision: https://reviews.llvm.org/D32015
Patch by Andrei Elovikov <andrei.elovikov@intel.com>
llvm-svn: 300553
Diffstat (limited to 'clang/lib/Sema/SemaAttr.cpp')
0 files changed, 0 insertions, 0 deletions