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 | 3db39dc1ae6f27f10bd7bed91d40048b71c3ffc0 (patch) | |
tree | 265413c982f8a44f9a73be8d0a9cdb485bf6ef01 /clang/lib/Analysis/FormatString.cpp | |
parent | d6d1a9859e142f7b67b49087b9649754a6a6b5cf (diff) | |
download | bcm5719-llvm-3db39dc1ae6f27f10bd7bed91d40048b71c3ffc0.tar.gz bcm5719-llvm-3db39dc1ae6f27f10bd7bed91d40048b71c3ffc0.zip |
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
llvm-svn: 188936
Diffstat (limited to 'clang/lib/Analysis/FormatString.cpp')
0 files changed, 0 insertions, 0 deletions