diff --git a/llvm/include/llvm/CodeGen/MachinePipeliner.h b/llvm/include/llvm/CodeGen/MachinePipeliner.h --- a/llvm/include/llvm/CodeGen/MachinePipeliner.h +++ b/llvm/include/llvm/CodeGen/MachinePipeliner.h @@ -83,8 +83,6 @@ MachineBasicBlock *TBB = nullptr; MachineBasicBlock *FBB = nullptr; SmallVector BrCond; - MachineInstr *LoopInductionVar = nullptr; - MachineInstr *LoopCompare = nullptr; std::unique_ptr LoopPipelinerInfo = nullptr; }; diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -368,8 +368,6 @@ return false; } - LI.LoopInductionVar = nullptr; - LI.LoopCompare = nullptr; LI.LoopPipelinerInfo = TII->analyzeLoopForPipelining(L.getTopBlock()); if (!LI.LoopPipelinerInfo) { LLVM_DEBUG(dbgs() << "Unable to analyzeLoop, can NOT pipeline Loop\n");