File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
include/swift/SILAnalysis Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class BottomUpFunctionOrder {
48
48
: M(M), BCA(BCA), NextDFSNum(0 ) {}
49
49
50
50
// / Get the SCCs in bottom-up order.
51
- ArrayRef<SCC> getSCCsBottomUp () {
51
+ ArrayRef<SCC> getSCCs () {
52
52
if (!TheSCCs.empty ())
53
53
return TheSCCs;
54
54
@@ -58,11 +58,11 @@ class BottomUpFunctionOrder {
58
58
59
59
// / Get a flattened view of all functions in all the SCCs in
60
60
// / bottom-up order
61
- ArrayRef<SILFunction *> getFunctionsBottomUp () {
61
+ ArrayRef<SILFunction *> getFunctions () {
62
62
if (!TheFunctions.empty ())
63
63
return TheFunctions;
64
64
65
- for (auto SCC : getSCCsBottomUp ())
65
+ for (auto SCC : getSCCs ())
66
66
for (auto *F : SCC)
67
67
TheFunctions.push_back (F);
68
68
Original file line number Diff line number Diff line change @@ -850,7 +850,7 @@ class SILClosureSpecializerTransform : public SILModuleTransform {
850
850
BottomUpFunctionOrder Ordering (*getModule (), BCA);
851
851
852
852
// Specialize going bottom-up.
853
- for (auto *F : Ordering.getFunctionsBottomUp ()) {
853
+ for (auto *F : Ordering.getFunctions ()) {
854
854
// Don't optimize functions that are marked with the opt.never
855
855
// attribute.
856
856
if (!F->shouldOptimize ())
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class FunctionOrderPrinterPass : public SILModuleTransform {
39
39
BottomUpFunctionOrder Orderer (M, BCA);
40
40
41
41
llvm::outs () << " Bottom up function order:\n " ;
42
- auto SCCs = Orderer.getSCCsBottomUp ();
42
+ auto SCCs = Orderer.getSCCs ();
43
43
for (auto &SCC : SCCs) {
44
44
std::string Indent;
45
45
You can’t perform that action at this time.
0 commit comments