Skip to content

Commit 01b2163

Browse files
committed
AS: Rename to greedy, CFG obviation, comment fix
1 parent f7855eb commit 01b2163

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

llvm/include/llvm/CodeGen/MachineFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ class LLVM_ABI MachineFunction {
927927

928928
/// Run the current MachineFunction through the machine code verifier, useful
929929
/// for debugger use.
930-
/// TODO: Add the param LiveStks
930+
/// TODO: Add the param for LiveStacks analysis.
931931
/// \returns true if no problems were found.
932932
bool verify(LiveIntervals *LiveInts, SlotIndexes *Indexes,
933933
const char *Banner = nullptr, raw_ostream *OS = nullptr,

llvm/include/llvm/Passes/MachinePassRegistry.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ MACHINE_FUNCTION_PASS_WITH_PARAMS(
196196
"filter=reg-filter;no-clear-vregs")
197197

198198
MACHINE_FUNCTION_PASS_WITH_PARAMS(
199-
"regallocgreedy", "RAGreedyPass",
199+
"greedy", "RAGreedyPass",
200200
[](RAGreedyPass::Options Opts) { return RAGreedyPass(Opts); },
201201
[PB = this](StringRef Params) {
202202
// TODO: parseRegAllocGreedyFilterFunc(*PB, Params);

llvm/lib/CodeGen/RegAllocGreedy.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ PreservedAnalyses RAGreedyPass::run(MachineFunction &MF,
242242
PA.preserve<SlotIndexesAnalysis>();
243243
PA.preserve<LiveDebugVariablesAnalysis>();
244244
PA.preserve<LiveStacksAnalysis>();
245-
PA.preserve<MachineDominatorTreeAnalysis>();
246-
PA.preserve<MachineLoopAnalysis>();
247245
PA.preserve<VirtRegMapAnalysis>();
248246
PA.preserve<LiveRegMatrixAnalysis>();
249247
return PA;
@@ -269,7 +267,7 @@ bool RAGreedyLegacy::runOnMachineFunction(MachineFunction &MF) {
269267
&getAnalysis<SpillPlacementWrapperLegacy>().getResult();
270268
Analyses.DebugVars = &getAnalysis<LiveDebugVariablesWrapperLegacy>().getLDV();
271269
Analyses.EvictProvider =
272-
getAnalysis<RegAllocEvictionAdvisorAnalysisLegacy>().getProvider().get();
270+
&getAnalysis<RegAllocEvictionAdvisorAnalysisLegacy>().getProvider();
273271
Analyses.PriorityProvider =
274272
&getAnalysis<RegAllocPriorityAdvisorAnalysisLegacy>().getProvider();
275273

0 commit comments

Comments
 (0)