[llvm] [llvm][CodeGen] Add a new software pipeliner 'Window Scheduler' (PR #84443)
Hua Tian via llvm-commits
llvm-commits at lists.llvm.org
Sat May 11 00:54:42 PDT 2024
================
@@ -300,13 +300,13 @@ void WindowScheduler::generateTripleMBB() {
// are updated accordingly.
for (size_t Cnt = 1; Cnt < DuplicateNum; ++Cnt) {
for (auto *MI : OriMIs) {
- if (MI->isPHI() || MI->isDebugInstr() ||
+ if (MI->isPHI() || MI->isMetaInstruction() ||
(MI->isTerminator() && Cnt < DuplicateNum - 1))
continue;
auto *NewMI = MF->CloneMachineInstr(MI);
DenseMap<Register, Register> NewDefs;
// New defines are updated.
- for (auto MO : NewMI->defs())
+ for (auto MO : NewMI->all_defs())
----------------
huaatian wrote:
Okay, we have added test cases for dead def, implicit-def, and meta instruction.
https://github.com/llvm/llvm-project/pull/84443
More information about the llvm-commits
mailing list