Skip to content

Commit eb991bb

Browse files
committed
Address review comments 1
- Improve comment regarding multiple iterations
1 parent 5e2d8b6 commit eb991bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/IPO/FunctionSpecialization.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,9 @@ bool FunctionSpecializer::run() {
680680
continue;
681681

682682
// When specialization on literal constants is disabled, only consider
683-
// recursive functions when running multiple times.
683+
// recursive functions when running multiple times to save wasted analysis,
684+
// as we will not be able to specialize on any newly found literal constant
685+
// return values.
684686
if (!SpecializeLiteralConstant && !Inserted && !Metrics.isRecursive)
685687
continue;
686688

0 commit comments

Comments
 (0)