Skip to content

Commit 3f4519d

Browse files
committed
Tweak method naming in BottomUpFunctionOrder.
1 parent 4121b43 commit 3f4519d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

include/swift/SILAnalysis/FunctionOrder.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class BottomUpFunctionOrder {
4848
: M(M), BCA(BCA), NextDFSNum(0) {}
4949

5050
/// Get the SCCs in bottom-up order.
51-
ArrayRef<SCC> getSCCsBottomUp() {
51+
ArrayRef<SCC> getSCCs() {
5252
if (!TheSCCs.empty())
5353
return TheSCCs;
5454

@@ -58,11 +58,11 @@ class BottomUpFunctionOrder {
5858

5959
/// Get a flattened view of all functions in all the SCCs in
6060
/// bottom-up order
61-
ArrayRef<SILFunction *> getFunctionsBottomUp() {
61+
ArrayRef<SILFunction *> getFunctions() {
6262
if (!TheFunctions.empty())
6363
return TheFunctions;
6464

65-
for (auto SCC : getSCCsBottomUp())
65+
for (auto SCC : getSCCs())
6666
for (auto *F : SCC)
6767
TheFunctions.push_back(F);
6868

lib/SILPasses/IPO/ClosureSpecializer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ class SILClosureSpecializerTransform : public SILModuleTransform {
850850
BottomUpFunctionOrder Ordering(*getModule(), BCA);
851851

852852
// Specialize going bottom-up.
853-
for (auto *F : Ordering.getFunctionsBottomUp()) {
853+
for (auto *F : Ordering.getFunctions()) {
854854
// Don't optimize functions that are marked with the opt.never
855855
// attribute.
856856
if (!F->shouldOptimize())

lib/SILPasses/UtilityPasses/FunctionOrderPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class FunctionOrderPrinterPass : public SILModuleTransform {
3939
BottomUpFunctionOrder Orderer(M, BCA);
4040

4141
llvm::outs() << "Bottom up function order:\n";
42-
auto SCCs = Orderer.getSCCsBottomUp();
42+
auto SCCs = Orderer.getSCCs();
4343
for (auto &SCC : SCCs) {
4444
std::string Indent;
4545

0 commit comments

Comments
 (0)