@@ -41,25 +41,25 @@ class Value;
41
41
42
42
// / Replace contents of every block in \p BBs with single unreachable
43
43
// / instruction. If \p Updates is specified, collect all necessary DT updates
44
- // / into this vector. If \p DontDeleteUselessPHIs is true, one-input Phis in
44
+ // / into this vector. If \p KeepOneInputPHIs is true, one-input Phis in
45
45
// / successors of blocks being deleted will be preserved.
46
46
void DetatchDeadBlocks (ArrayRef <BasicBlock *> BBs,
47
47
SmallVectorImpl<DominatorTree::UpdateType> *Updates,
48
- bool DontDeleteUselessPHIs = false );
48
+ bool KeepOneInputPHIs = false );
49
49
50
50
// / Delete the specified block, which must have no predecessors.
51
51
void DeleteDeadBlock (BasicBlock *BB, DomTreeUpdater *DTU = nullptr ,
52
- bool DontDeleteUselessPHIs = false );
52
+ bool KeepOneInputPHIs = false );
53
53
54
54
// / Delete the specified blocks from \p BB. The set of deleted blocks must have
55
55
// / no predecessors that are not being deleted themselves. \p BBs must have no
56
56
// / duplicating blocks. If there are loops among this set of blocks, all
57
57
// / relevant loop info updates should be done before this function is called.
58
- // / If \p DontDeleteUselessPHIs is true, one-input Phis in successors of blocks
58
+ // / If \p KeepOneInputPHIs is true, one-input Phis in successors of blocks
59
59
// / being deleted will be preserved.
60
60
void DeleteDeadBlocks (ArrayRef <BasicBlock *> BBs,
61
61
DomTreeUpdater *DTU = nullptr ,
62
- bool DontDeleteUselessPHIs = false );
62
+ bool KeepOneInputPHIs = false );
63
63
64
64
// / We know that BB has one predecessor. If there are any single-entry PHI nodes
65
65
// / in it, fold them away. This handles the case when all entries to the PHI
@@ -106,7 +106,7 @@ struct CriticalEdgeSplittingOptions {
106
106
LoopInfo *LI;
107
107
MemorySSAUpdater *MSSAU;
108
108
bool MergeIdenticalEdges = false ;
109
- bool DontDeleteUselessPHIs = false ;
109
+ bool KeepOneInputPHIs = false ;
110
110
bool PreserveLCSSA = false ;
111
111
112
112
CriticalEdgeSplittingOptions (DominatorTree *DT = nullptr ,
@@ -119,8 +119,8 @@ struct CriticalEdgeSplittingOptions {
119
119
return *this ;
120
120
}
121
121
122
- CriticalEdgeSplittingOptions &setDontDeleteUselessPHIs () {
123
- DontDeleteUselessPHIs = true ;
122
+ CriticalEdgeSplittingOptions &setKeepOneInputPHIs () {
123
+ KeepOneInputPHIs = true ;
124
124
return *this ;
125
125
}
126
126
0 commit comments