diff options
author | Juergen Ributzka <juergen@apple.com> | 2013-08-21 21:53:38 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2013-08-21 21:53:38 +0000 |
commit | 915e936de270c3c57df1382b683001adc2c0d695 (patch) | |
tree | 82a6c5582471ba568d7774f1f30b5841bed0af22 /lib/Transforms/Utils | |
parent | 79ef34d1802eeea48aa4e9346abecbf8ceb2e8eb (diff) | |
download | external_llvm-915e936de270c3c57df1382b683001adc2c0d695.zip external_llvm-915e936de270c3c57df1382b683001adc2c0d695.tar.gz external_llvm-915e936de270c3c57df1382b683001adc2c0d695.tar.bz2 |
Teach BaseIndexOffset::match to identify base pointers in loops.
The small utility function that pattern matches Base + Index +
Offset patterns for loads and stores fails to recognize the base
pointer for loads/stores from/into an array at offset 0 inside a
loop. As a result DAGCombiner::MergeConsecutiveStores was not able
to merge all stores.
This commit fixes the issue by adding an additional pattern match
and also a test case.
Reviewer: Nadav
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
0 files changed, 0 insertions, 0 deletions