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.
Paths
| Differential D111401
[LoopIdiom] Fix store size SCEV type. ClosedPublic Authored by courbet on Oct 8 2021, 4:51 AM.
Details
Summary We were using the type of the loop back edge count to represent the Use the index type instead. Fixes PR52104.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 8 2021, 1:24 PM Closed by commit rG6aaf1e7ea931: [LoopIdiom] Fix store size SCEV type. (authored by courbet). · Explain WhyOct 11 2021, 12:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 378583 llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/test/Transforms/LoopIdiom/memset-pr52104.ll
|