[all-commits] [llvm/llvm-project] 110ec1: LoopVectorize/iv-select-cmp: add test for decreasi...
Ramkumar Ramachandra via All-commits
all-commits at lists.llvm.org
Wed Jul 26 06:15:49 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 110ec1863af6a54d0cb646ca93867aec9f1e8fdc
https://github.com/llvm/llvm-project/commit/110ec1863af6a54d0cb646ca93867aec9f1e8fdc
Author: Ramkumar Ramachandra <Ramkumar.Ramachandra at imgtec.com>
Date: 2023-07-26 (Wed, 26 Jul 2023)
Changed paths:
M llvm/test/Transforms/LoopVectorize/iv-select-cmp.ll
Log Message:
-----------
LoopVectorize/iv-select-cmp: add test for decreasing IV, const start
The most straightforward extension to D150851 would involve a loop with
decreasing induction variable, with a constant start value.
iv-select-cmp.ll only contains a negative test for the decreasing
induction variable case when the start value is variable, namely
not_vectorized_select_decreasing_induction_icmp. Hence, add a test for
the most straightforward extension to D150851, in preparation to
vectorize:
long rdx = 331;
for (long i = 19999; i >= 0; i--) {
if (a[i] > 3)
rdx = i;
}
return rdx;
Differential Revision: https://reviews.llvm.org/D156152
More information about the All-commits
mailing list