diff options
author | Quentin Colombet <qcolombet@apple.com> | 2015-04-24 21:28:00 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2015-04-24 21:28:00 +0000 |
commit | 82291459611118ae441179945b472ad68e86a7d4 (patch) | |
tree | 94e8dd90d7edfa2c1e2b3bfc80d3b2621d4b3729 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | aac51934cfc61420bf621e20af1e7bae29e013c5 (diff) | |
download | bcm5719-llvm-82291459611118ae441179945b472ad68e86a7d4.tar.gz bcm5719-llvm-82291459611118ae441179945b472ad68e86a7d4.zip |
[DAGCombiner] Fix the type used in canFoldInAddressingMode to account for the
right scaling.
In the function canFoldInAddressingMode, VT is computed as the type of the
destination/source of a LOAD/STORE operations, instead of the memory type of the
operation.
On targets with a scaling factor on the offset of the LOAD/STORE operations, the
function may return false for actually valid cases. This may then prevent the
selection of profitable pre or post indexed load/store operations, and instead
select pre or post indexed load/store for unprofitable cases.
Patch by Francois de Ferriere <francois.de-ferriere@st.com>!
Differential Revision: http://reviews.llvm.org/D9146
llvm-svn: 235780
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions