diff options
author | Shengchen Kan <shengchen.kan@intel.com> | 2022-03-16 20:21:25 +0800 |
---|---|---|
committer | Shengchen Kan <shengchen.kan@intel.com> | 2022-03-16 20:25:42 +0800 |
commit | 37b378386eefab39ef570db6172a8b8e660d7bfb (patch) | |
tree | 2ea96dcb5e41e7dacc690037142c475f4d77c7b9 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | 14d1a582093951973a5b94e4aab4d91ef4a0b80d (diff) | |
download | llvm-37b378386eefab39ef570db6172a8b8e660d7bfb.zip llvm-37b378386eefab39ef570db6172a8b8e660d7bfb.tar.gz llvm-37b378386eefab39ef570db6172a8b8e660d7bfb.tar.bz2 |
[NFC][CodeGen] Rename some functions in MachineInstr.h and remove duplicated comments
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ModuloSchedule.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/ModuloSchedule.cpp b/llvm/lib/CodeGen/ModuloSchedule.cpp index 0224e07..b974fa98 100644 --- a/llvm/lib/CodeGen/ModuloSchedule.cpp +++ b/llvm/lib/CodeGen/ModuloSchedule.cpp @@ -814,8 +814,8 @@ static void removePhis(MachineBasicBlock *BB, MachineBasicBlock *Incoming) { break; for (unsigned i = 1, e = MI.getNumOperands(); i != e; i += 2) if (MI.getOperand(i + 1).getMBB() == Incoming) { - MI.RemoveOperand(i + 1); - MI.RemoveOperand(i); + MI.removeOperand(i + 1); + MI.removeOperand(i); break; } } @@ -1930,8 +1930,8 @@ void PeelingModuloScheduleExpander::fixupBranches() { // blocks. Leave it to unreachable-block-elim to clean up. Prolog->removeSuccessor(Fallthrough); for (MachineInstr &P : Fallthrough->phis()) { - P.RemoveOperand(2); - P.RemoveOperand(1); + P.removeOperand(2); + P.removeOperand(1); } TII->insertUnconditionalBranch(*Prolog, Epilog, DebugLoc()); KernelDisposed = true; @@ -1940,8 +1940,8 @@ void PeelingModuloScheduleExpander::fixupBranches() { // Prolog always falls through; remove incoming values in epilog. Prolog->removeSuccessor(Epilog); for (MachineInstr &P : Epilog->phis()) { - P.RemoveOperand(4); - P.RemoveOperand(3); + P.removeOperand(4); + P.removeOperand(3); } } } |