Skip to content

Commit 1a6e0c8

Browse files
committed
AS: Rename to greedy, CFG obviation, comment fix
1 parent 0c99860 commit 1a6e0c8

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
@@ -920,7 +920,7 @@ class LLVM_ABI MachineFunction {
920920

921921
/// Run the current MachineFunction through the machine code verifier, useful
922922
/// for debugger use.
923-
/// TODO: Add the param LiveStks
923+
/// TODO: Add the param for LiveStacks analysis.
924924
/// \returns true if no problems were found.
925925
bool verify(LiveIntervals *LiveInts, SlotIndexes *Indexes,
926926
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
@@ -189,7 +189,7 @@ MACHINE_FUNCTION_PASS_WITH_PARAMS(
189189
"filter=reg-filter;no-clear-vregs")
190190

191191
MACHINE_FUNCTION_PASS_WITH_PARAMS(
192-
"regallocgreedy", "RAGreedyPass",
192+
"greedy", "RAGreedyPass",
193193
[](RAGreedyPass::Options Opts) { return RAGreedyPass(Opts); },
194194
[PB = this](StringRef Params) {
195195
// 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)