diff options
author | Diego Caballero <diego.caballero@intel.com> | 2018-07-09 15:57:09 +0000 |
---|---|---|
committer | Diego Caballero <diego.caballero@intel.com> | 2018-07-09 15:57:09 +0000 |
commit | d09530144a5412a01d222a77257ab2be12d977f1 (patch) | |
tree | 3cb9a6d79bdda57b84a0fa940a5507a1b5682ab4 /llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp | |
parent | 48db19e95a711d0a0e0f7ed835f9bfcb2c1b4892 (diff) | |
download | bcm5719-llvm-d09530144a5412a01d222a77257ab2be12d977f1.tar.gz bcm5719-llvm-d09530144a5412a01d222a77257ab2be12d977f1.zip |
[VPlan][LV] Introduce condition bit in VPBlockBase
This patch introduces a VPValue in VPBlockBase to represent the condition
bit that is used as successor selector when a block has multiple successors.
This information wasn't necessary until now, when we are about to introduce
outer loop vectorization support in VPlan code gen.
Reviewers: fhahn, rengolin, mkuper, hfinkel, mssimpso
Reviewed By: fhahn
Differential Revision: https://reviews.llvm.org/D48814
llvm-svn: 336554
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp b/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp index 35100b83a32..054bed4e177 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp @@ -48,6 +48,12 @@ static void verifyBlocksInRegion(const VPRegionBlock *Region) { // Check block's parent. assert(VPB->getParent() == Region && "VPBlockBase has wrong parent"); + // Check block's condition bit. + if (VPB->getNumSuccessors() > 1) + assert(VPB->getCondBit() && "Missing condition bit!"); + else + assert(!VPB->getCondBit() && "Unexpected condition bit!"); + // Check block's successors. const auto &Successors = VPB->getSuccessors(); // There must be only one instance of a successor in block's successor list. |