Skip to content

Commit 327124e

Browse files
authored
[NFC][EarlyIfConverter] Rename SSAIfConv::runOnMachineFunction to SSAIfConv::init (llvm#111500)
1 parent fbf9bea commit 327124e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/CodeGen/EarlyIfConversion.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ class SSAIfConv {
163163
void rewritePHIOperands();
164164

165165
public:
166-
/// runOnMachineFunction - Initialize per-function data structures.
167-
void runOnMachineFunction(MachineFunction &MF) {
166+
/// init - Initialize per-function data structures.
167+
void init(MachineFunction &MF) {
168168
TII = MF.getSubtarget().getInstrInfo();
169169
TRI = MF.getSubtarget().getRegisterInfo();
170170
MRI = &MF.getRegInfo();
@@ -1097,7 +1097,7 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
10971097
MinInstr = nullptr;
10981098

10991099
bool Changed = false;
1100-
IfConv.runOnMachineFunction(MF);
1100+
IfConv.init(MF);
11011101

11021102
// Visit blocks in dominator tree post-order. The post-order enables nested
11031103
// if-conversion in a single pass. The tryConvertIf() function may erase
@@ -1232,7 +1232,7 @@ bool EarlyIfPredicator::runOnMachineFunction(MachineFunction &MF) {
12321232
MBPI = &getAnalysis<MachineBranchProbabilityInfoWrapperPass>().getMBPI();
12331233

12341234
bool Changed = false;
1235-
IfConv.runOnMachineFunction(MF);
1235+
IfConv.init(MF);
12361236

12371237
// Visit blocks in dominator tree post-order. The post-order enables nested
12381238
// if-conversion in a single pass. The tryConvertIf() function may erase

0 commit comments

Comments
 (0)