diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h index 662272e5e096180..41ff503d5329eb1 100644 --- a/llvm/include/llvm/CodeGen/MachineFunction.h +++ b/llvm/include/llvm/CodeGen/MachineFunction.h @@ -901,7 +901,7 @@ class LLVM_ABI MachineFunction { /// Run the current MachineFunction through the machine code verifier, useful /// for debugger use. - /// TODO: Add the param LiveStks + /// TODO: Add the param for LiveStacks analysis. /// \returns true if no problems were found. bool verify(LiveIntervals *LiveInts, SlotIndexes *Indexes, const char *Banner = nullptr, raw_ostream *OS = nullptr, diff --git a/llvm/include/llvm/Passes/MachinePassRegistry.def b/llvm/include/llvm/Passes/MachinePassRegistry.def index 5facdfa825e4cbf..fa7f769f31fddea 100644 --- a/llvm/include/llvm/Passes/MachinePassRegistry.def +++ b/llvm/include/llvm/Passes/MachinePassRegistry.def @@ -189,7 +189,7 @@ MACHINE_FUNCTION_PASS_WITH_PARAMS( "filter=reg-filter;no-clear-vregs") MACHINE_FUNCTION_PASS_WITH_PARAMS( - "regallocgreedy", "RAGreedyPass", + "greedy", "RAGreedyPass", [](RAGreedyPass::Options Opts) { return RAGreedyPass(Opts); }, [PB = this](StringRef Params) { // TODO: parseRegAllocGreedyFilterFunc(*PB, Params); diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index aec8d5ef93a3874..4bee6e2636241a8 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -242,8 +242,6 @@ PreservedAnalyses RAGreedyPass::run(MachineFunction &MF, PA.preserve(); PA.preserve(); PA.preserve(); - PA.preserve(); - PA.preserve(); PA.preserve(); PA.preserve(); return PA; @@ -269,7 +267,7 @@ bool RAGreedyLegacy::runOnMachineFunction(MachineFunction &MF) { &getAnalysis().getResult(); Analyses.DebugVars = &getAnalysis().getLDV(); Analyses.EvictProvider = - getAnalysis().getProvider().get(); + &getAnalysis().getProvider(); Analyses.PriorityProvider = &getAnalysis().getProvider();