File tree 4 files changed +5
-11
lines changed
unittests/Transforms/Vectorize
4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 58
58
#include "VPRecipeBuilder.h"
59
59
#include "VPlan.h"
60
60
#include "VPlanAnalysis.h"
61
+ #include "VPlanCFG.h"
61
62
#include "VPlanHCFGBuilder.h"
62
63
#include "VPlanHelpers.h"
63
64
#include "VPlanPatternMatch.h"
Original file line number Diff line number Diff line change @@ -496,9 +496,4 @@ void VPlanHCFGBuilder::buildHierarchicalCFG() {
496
496
// Build Top Region enclosing the plain CFG.
497
497
buildPlainCFG ();
498
498
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 ()));
504
499
}
Original file line number Diff line number Diff line change 24
24
#ifndef LLVM_TRANSFORMS_VECTORIZE_VPLAN_VPLANHCFGBUILDER_H
25
25
#define LLVM_TRANSFORMS_VECTORIZE_VPLAN_VPLANHCFGBUILDER_H
26
26
27
- #include " VPlanDominatorTree .h"
27
+ #include " llvm/ADT/DenseMap .h"
28
28
29
29
namespace llvm {
30
30
@@ -33,6 +33,8 @@ class LoopInfo;
33
33
class VPRegionBlock ;
34
34
class VPlan ;
35
35
class VPlanTestIRBase ;
36
+ class VPBlockBase ;
37
+ class BasicBlock ;
36
38
37
39
// / Main class to build the VPlan H-CFG for an incoming IR.
38
40
class VPlanHCFGBuilder {
@@ -48,11 +50,6 @@ class VPlanHCFGBuilder {
48
50
// The VPlan that will contain the H-CFG we are building.
49
51
VPlan &Plan;
50
52
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
-
56
53
// / Map of create VP blocks to their input IR basic blocks, if they have been
57
54
// / created for a input IR basic block.
58
55
DenseMap<VPBlockBase *, BasicBlock *> VPB2IRBB;
Original file line number Diff line number Diff line change 8
8
9
9
#include " ../lib/Transforms/Vectorize/VPlanVerifier.h"
10
10
#include " ../lib/Transforms/Vectorize/VPlan.h"
11
+ #include " ../lib/Transforms/Vectorize/VPlanCFG.h"
11
12
#include " VPlanTestBase.h"
12
13
#include " llvm/IR/Instruction.h"
13
14
#include " llvm/IR/Instructions.h"
You can’t perform that action at this time.
0 commit comments