Skip to content

Commit 75270e3

Browse files
committed
[VPlan] Don't print VPlan DT after VPlan construction. (NFC)
Remove unnecessary code to just print VPlan dominator tree.
1 parent 304c053 commit 75270e3

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#include "VPRecipeBuilder.h"
5959
#include "VPlan.h"
6060
#include "VPlanAnalysis.h"
61+
#include "VPlanCFG.h"
6162
#include "VPlanHCFGBuilder.h"
6263
#include "VPlanHelpers.h"
6364
#include "VPlanPatternMatch.h"

llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,4 @@ void VPlanHCFGBuilder::buildHierarchicalCFG() {
496496
// Build Top Region enclosing the plain CFG.
497497
buildPlainCFG();
498498
LLVM_DEBUG(Plan.setName("HCFGBuilder: Plain CFG\n"); dbgs() << Plan);
499-
500-
// Compute plain CFG dom tree for VPLInfo.
501-
VPDomTree.recalculate(Plan);
502-
LLVM_DEBUG(dbgs() << "Dominator Tree after building the plain CFG.\n";
503-
VPDomTree.print(dbgs()));
504499
}

llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#ifndef LLVM_TRANSFORMS_VECTORIZE_VPLAN_VPLANHCFGBUILDER_H
2525
#define LLVM_TRANSFORMS_VECTORIZE_VPLAN_VPLANHCFGBUILDER_H
2626

27-
#include "VPlanDominatorTree.h"
27+
#include "llvm/ADT/DenseMap.h"
2828

2929
namespace llvm {
3030

@@ -33,6 +33,8 @@ class LoopInfo;
3333
class VPRegionBlock;
3434
class VPlan;
3535
class VPlanTestIRBase;
36+
class VPBlockBase;
37+
class BasicBlock;
3638

3739
/// Main class to build the VPlan H-CFG for an incoming IR.
3840
class VPlanHCFGBuilder {
@@ -48,11 +50,6 @@ class VPlanHCFGBuilder {
4850
// The VPlan that will contain the H-CFG we are building.
4951
VPlan &Plan;
5052

51-
// Dominator analysis for VPlan plain CFG to be used in the
52-
// construction of the H-CFG. This analysis is no longer valid once regions
53-
// are introduced.
54-
VPDominatorTree VPDomTree;
55-
5653
/// Map of create VP blocks to their input IR basic blocks, if they have been
5754
/// created for a input IR basic block.
5855
DenseMap<VPBlockBase *, BasicBlock *> VPB2IRBB;

llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "../lib/Transforms/Vectorize/VPlanVerifier.h"
1010
#include "../lib/Transforms/Vectorize/VPlan.h"
11+
#include "../lib/Transforms/Vectorize/VPlanCFG.h"
1112
#include "VPlanTestBase.h"
1213
#include "llvm/IR/Instruction.h"
1314
#include "llvm/IR/Instructions.h"

0 commit comments

Comments
 (0)