diff options
| author | Anna Thomas <anna@azul.com> | 2017-01-20 00:21:33 +0000 |
|---|---|---|
| committer | Anna Thomas <anna@azul.com> | 2017-01-20 00:21:33 +0000 |
| commit | 698f0deea90697586621fd2d3023228534f5252d (patch) | |
| tree | 342dc0ebd8bdb026c122dccfada0233939738b19 /llvm/lib/CodeGen | |
| parent | fd3dae024f861906a284ddb3d4a26cd832e76965 (diff) | |
| download | bcm5719-llvm-698f0deea90697586621fd2d3023228534f5252d.tar.gz bcm5719-llvm-698f0deea90697586621fd2d3023228534f5252d.zip | |
[AliasAnalysis] Fences do not modify constant memory location
Summary:
Fence instructions are currently marked as `ModRef` for all memory locations.
We can improve this for constant memory locations (such as constant globals),
since fence instructions cannot modify these locations.
This helps us to forward constant loads across fences (added test case in GVN).
There were no changes in behaviour for similar test cases in early-cse and licm.
Reviewers: dberlin, sanjoy, reames
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D28914
llvm-svn: 292546
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions

