diff options
author | Florian Hahn <flo@fhahn.com> | 2022-12-23 11:44:42 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2022-12-23 11:44:42 +0000 |
commit | b7b1e5c96fe05bad7cb68fdaea21d2b88ce7f2d1 (patch) | |
tree | ee3e3296628edcb4cbb8831dede17d6323b3ad05 /llvm | |
parent | 32d7aae04fdb58e65a952f281ff2f2c3f396d98f (diff) | |
download | llvm-b7b1e5c96fe05bad7cb68fdaea21d2b88ce7f2d1.zip llvm-b7b1e5c96fe05bad7cb68fdaea21d2b88ce7f2d1.tar.gz llvm-b7b1e5c96fe05bad7cb68fdaea21d2b88ce7f2d1.tar.bz2 |
[LV] Assert that the executed plan contains selected VF & UF (NFC).
Add assertion to ensure the executed plan is valid for the selected VF
and UF.
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 636306e..f194441 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -7611,6 +7611,11 @@ void LoopVectorizationPlanner::executePlan(ElementCount BestVF, unsigned BestUF, InnerLoopVectorizer &ILV, DominatorTree *DT, bool IsEpilogueVectorization) { + assert(BestVPlan.hasVF(BestVF) && + "Trying to execute plan with unsupported VF"); + assert(BestVPlan.hasUF(BestUF) && + "Trying to execute plan with unsupported UF"); + LLVM_DEBUG(dbgs() << "Executing best plan with VF=" << BestVF << ", UF=" << BestUF << '\n'); |