[llvm] 555af02 - SLPVectorizer: Pass through AssumptionCache
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 16:25:36 PDT 2022
Author: Matt Arsenault
Date: 2022-09-19T19:25:22-04:00
New Revision: 555af0274cebf52f9cce959dc8e6ef6f55c3239c
URL: https://github.com/llvm/llvm-project/commit/555af0274cebf52f9cce959dc8e6ef6f55c3239c
DIFF: https://github.com/llvm/llvm-project/commit/555af0274cebf52f9cce959dc8e6ef6f55c3239c.diff
LOG: SLPVectorizer: Pass through AssumptionCache
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 47065439df1f..9eb3fe3f3e33 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -9595,7 +9595,7 @@ void BoUpSLP::BlockScheduling::calculateDependencies(ScheduleData *SD,
if (!isGuaranteedToTransferExecutionToSuccessor(BundleMember->Inst)) {
for (Instruction *I = BundleMember->Inst->getNextNode();
I != ScheduleEnd; I = I->getNextNode()) {
- if (isSafeToSpeculativelyExecute(I, &*BB->begin()))
+ if (isSafeToSpeculativelyExecute(I, &*BB->begin(), SLP->AC))
continue;
// Add the dependency
More information about the llvm-commits
mailing list