[llvm] [LoopVectorize] Add support for vectorisation of more early exit loops (PR #88385)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 23 23:39:04 PDT 2024
================
@@ -2353,6 +2349,36 @@ void MemoryDepChecker::Dependence::print(
OS.indent(Depth + 2) << *Instrs[Destination] << "\n";
}
+void LoopAccessInfo::recordExitingBlocks() {
+ SmallVector<BasicBlock *, 8> ExitingBlocks;
+ TheLoop->getExitingBlocks(ExitingBlocks);
+
+ SmallVector<BasicBlock *, 4> CountableExitingBBs;
+ PSE->getSE()->getCountableExitingBlocks(TheLoop, &CountableExitingBBs);
----------------
fhahn wrote:
If getCountableExitingBlocks is only used here, could it be moved out of LAI?
https://github.com/llvm/llvm-project/pull/88385
More information about the llvm-commits
mailing list