[all-commits] [llvm/llvm-project] 6aaf1e: [LoopIdiom] Fix store size SCEV type.
Clement Courbet via All-commits
all-commits at lists.llvm.org
Mon Oct 11 00:47:58 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6aaf1e7ea931a1865cc97ebf8fcb084772f8142e
https://github.com/llvm/llvm-project/commit/6aaf1e7ea931a1865cc97ebf8fcb084772f8142e
Author: Clement Courbet <courbet at google.com>
Date: 2021-10-11 (Mon, 11 Oct 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
A llvm/test/Transforms/LoopIdiom/memset-pr52104.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list