[all-commits] [llvm/llvm-project] a9d1fe: Fix the condition for peeling the first iteration ...
Vivian via All-commits
all-commits at lists.llvm.org
Mon Mar 25 09:54:19 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a9d1fead961440d415f931bc22c160dec88e03fd
https://github.com/llvm/llvm-project/commit/a9d1fead961440d415f931bc22c160dec88e03fd
Author: Vivian <zhyuhang88 at gmail.com>
Date: 2024-03-25 (Mon, 25 Mar 2024)
Changed paths:
M mlir/lib/Dialect/SCF/Transforms/LoopSpecialization.cpp
M mlir/test/Dialect/SCF/for-loop-peeling-front.mlir
Log Message:
-----------
Fix the condition for peeling the first iteration (#86350)
This PR fixes the condition used in loop peeling of the first iteration.
Using ceilDiv instead of floorDiv when calculating the loop counts, so
that the first iteration gets peeled as needed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list