[all-commits] [llvm/llvm-project] aea2a1: [LoopUnroll] Prevent LoopFullUnrollPass to perform...
Yashwant Singh via All-commits
all-commits at lists.llvm.org
Wed Apr 12 21:51:53 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aea2a147363197f3cef140ebcd27b534fd41877b
https://github.com/llvm/llvm-project/commit/aea2a147363197f3cef140ebcd27b534fd41877b
Author: Yashwant Singh <Yashwant.Singh at amd.com>
Date: 2023-04-13 (Thu, 13 Apr 2023)
Changed paths:
M llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
A llvm/test/Transforms/LoopUnroll/full-unroll-avoid-partial.ll
M llvm/test/Transforms/LoopUnroll/revisit.ll
Log Message:
-----------
[LoopUnroll] Prevent LoopFullUnrollPass to perform partial/runtime unrolling
FullLoopUnroll was performing runtime unrolling in certain cases when
'#pragma unroll' was specified. Patch to fix this by introducing new parameter
to tryToUnrollLoop() to differentiate between LoopUnrollPass and
FullLoopUnrollPass. Based on the discussion here
(https://discourse.llvm.org/t/loop-unroller-fails-to-unroll-loop/69834)
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D148071
More information about the All-commits
mailing list