File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
llvm/include/llvm/CodeGen Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,9 @@ class ConvergingVLIWScheduler : public MachineSchedStrategy {
165
165
// a slightly different heuristic for small and large functions. For small
166
166
// functions, it's important to use the height/depth of the instruction.
167
167
// For large functions, prioritizing by height or depth increases spills.
168
- CriticalPathLength = DAG->getBBSize () / SchedModel->getIssueWidth ();
169
- if (DAG->getBBSize () < 50 )
168
+ const auto BBSize = DAG->getBBSize ();
169
+ CriticalPathLength = BBSize / SchedModel->getIssueWidth ();
170
+ if (BBSize < 50 )
170
171
// We divide by two as a cheap and simple heuristic to reduce the
171
172
// critcal path length, which increases the priority of using the graph
172
173
// height/depth in the scheduler's cost computation.
You can’t perform that action at this time.
0 commit comments