[llvm] [LV] Stability fix for outerloop vectorization (PR #68118)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 12:28:14 PST 2023
================
@@ -156,6 +156,19 @@ static bool isHeaderVPBB(VPBasicBlock *VPBB) {
return VPBB->getParent() && VPBB->getParent()->getEntry() == VPBB;
}
+/// Return true of \p L loop is contained within \p OuterLoop
+static bool isNestedLoop(const Loop *L, const Loop *OuterLoop) {
----------------
fhahn wrote:
nit: might be better to call it something like `doesContainLoop`, more in line with the comment.
https://github.com/llvm/llvm-project/pull/68118
More information about the llvm-commits
mailing list