diff options
author | Filipe Cabecinhas <me@filcab.net> | 2017-08-04 12:28:36 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2017-08-04 12:28:36 +0000 |
commit | fb9d2a877522abac1c300db25363de927cd02c8f (patch) | |
tree | 6bccf1fee2e0074710204d03c1b6c0db652987f1 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 1545eb34086af1c93d6ef20dd0f07cf2849542ae (diff) | |
download | bcm5719-llvm-fb9d2a877522abac1c300db25363de927cd02c8f.tar.gz bcm5719-llvm-fb9d2a877522abac1c300db25363de927cd02c8f.zip |
[DSE] Merge stores when the later store only writes to memory locations the early store also wrote to.
Summary:
This fixes PR31777.
If both stores' values are ConstantInt, we merge the two stores
(shifting the smaller store appropriately) and replace the earlier (and
larger) store with an updated constant.
In the future we should also support vectors of integers. And maybe
float/double if we can.
Reviewers: hfinkel, junbuml, jfb, RKSimon, bkramer
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D30703
llvm-svn: 310055
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions