diff options
author | Clement Courbet <courbet@google.com> | 2021-10-07 17:29:02 +0200 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2021-10-11 09:39:06 +0200 |
commit | 6aaf1e7ea931a1865cc97ebf8fcb084772f8142e (patch) | |
tree | 869fc9cb6aedc565b9ed85a4960763b0aaad1c05 /llvm/lib/Analysis/BasicAliasAnalysis.cpp | |
parent | 50a08e2c6d4185df6a5b0a5b41c7ef8849aad269 (diff) | |
download | llvm-6aaf1e7ea931a1865cc97ebf8fcb084772f8142e.zip llvm-6aaf1e7ea931a1865cc97ebf8fcb084772f8142e.tar.gz llvm-6aaf1e7ea931a1865cc97ebf8fcb084772f8142e.tar.bz2 |
[LoopIdiom] Fix store size SCEV type.
We were using the type of the loop back edge count to represent the
store size. This failed for small loop counts (e.g. in the added test,
the loop count was an i2).
Use the index type instead.
Fixes PR52104.
Differential Revision: https://reviews.llvm.org/D111401
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions