[all-commits] [llvm/llvm-project] eda3c9: [LoopFuse] Ensure loops are in loop simplified for...
MengXuan Cai via All-commits
all-commits at lists.llvm.org
Mon Oct 31 08:50:36 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eda3c93486ca113f63ccf8f28ca9c0ea90c09386
https://github.com/llvm/llvm-project/commit/eda3c93486ca113f63ccf8f28ca9c0ea90c09386
Author: Mengxuan Cai <mengxuan.cai at huawei.com>
Date: 2022-10-31 (Mon, 31 Oct 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/LoopFuse.cpp
A llvm/test/Transforms/LoopFusion/ensure_loop_simplify_form.ll
Log Message:
-----------
[LoopFuse] Ensure loops are in loop simplified form under new PM
Loop Fusion (Function Pass) requires loops in simplified form. With
legacy-pm, loop-simplify pass is added as a dependency for loop-fusion.
But the new pass manager does not always ensure this format. This patch
tries to invoke simplifyLoop() on loops that are not in simplified form
only for new PM.
Reviewed By: aeubanks
Differential Revision: https://reviews.llvm.org/D136781
More information about the All-commits
mailing list