Skip to content

Commit 6fdd9c4

Browse files
committed
AS comments
1 parent 4419ee3 commit 6fdd9c4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

llvm/include/llvm/CodeGen/SpillPlacement.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ class SpillPlacement {
160160
bool invalidate(MachineFunction &MF, const PreservedAnalyses &PA,
161161
MachineFunctionAnalysisManager::Invalidator &Inv);
162162

163-
// Move the default definitions to the implementation
164-
// so the full definition of Node is available.
163+
// Out of line definitions so unique_ptr<Node[]> doesn't need to be complete.
165164
SpillPlacement(SpillPlacement &&);
166165
~SpillPlacement();
167166

llvm/include/llvm/Passes/MachinePassRegistry.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ MACHINE_FUNCTION_ANALYSIS("machine-post-dom-tree",
112112
MachinePostDominatorTreeAnalysis())
113113
MACHINE_FUNCTION_ANALYSIS("machine-trace-metrics", MachineTraceMetricsAnalysis())
114114
MACHINE_FUNCTION_ANALYSIS("pass-instrumentation", PassInstrumentationAnalysis(PIC))
115-
MACHINE_FUNCTION_ANALYSIS("spill-code-placement", SpillPlacementAnalysis())
116115
MACHINE_FUNCTION_ANALYSIS("slot-indexes", SlotIndexesAnalysis())
116+
MACHINE_FUNCTION_ANALYSIS("spill-code-placement", SpillPlacementAnalysis())
117117
MACHINE_FUNCTION_ANALYSIS("virtregmap", VirtRegMapAnalysis())
118118
// MACHINE_FUNCTION_ANALYSIS("live-stacks", LiveStacksPass())
119119
// MACHINE_FUNCTION_ANALYSIS("lazy-machine-bfi",

llvm/lib/CodeGen/SpillPlacement.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,10 @@ bool SpillPlacementAnalysis::Result::invalidate(
213213
MachineFunction &MF, const PreservedAnalyses &PA,
214214
MachineFunctionAnalysisManager::Invalidator &Inv) {
215215
auto PAC = PA.getChecker<SpillPlacementAnalysis>();
216-
return (!PAC.preserved() &&
217-
!PAC.preservedSet<AllAnalysesOn<MachineFunction>>()) ||
218-
Inv.invalidate<EdgeBundlesAnalysis>(MF, PA) ||
216+
if (!PAC.preserved() && !PAC.preservedSet<AllAnalysesOn<MachineFunction>>())
217+
return true;
218+
// Check dependencies.
219+
return Inv.invalidate<EdgeBundlesAnalysis>(MF, PA) ||
219220
Inv.invalidate<MachineBlockFrequencyAnalysis>(MF, PA);
220221
}
221222

0 commit comments

Comments
 (0)