Skip to content

Commit c951ec9

Browse files
Fix some more debug output
1 parent 3fb7efd commit c951ec9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/Transforms/IPO/FunctionSpecialization.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -965,16 +965,17 @@ bool FunctionSpecializer::findSpecializations(Function *F, unsigned FuncSize,
965965
// Minimum codesize savings.
966966
if (B.CodeSize < MinCodeSizeSavings * FuncSize / 100) {
967967
LLVM_DEBUG(dbgs()
968-
<< "FnSpecialization: Insufficinet CodeSize Saving ("
969-
<< B.CodeSize << " > "
968+
<< "FnSpecialization: Insufficient CodeSize Savings ("
969+
<< B.CodeSize << " < "
970970
<< MinCodeSizeSavings * FuncSize / 100 << ")\n");
971971
return false;
972972
}
973973
// Minimum latency savings.
974974
if (B.Latency < MinLatencySavings * FuncSize / 100) {
975-
LLVM_DEBUG(dbgs() << "FnSpecialization: Insufficinet Latency Saving ("
976-
<< B.Latency << " > "
977-
<< MinLatencySavings * FuncSize / 100 << ")\n");
975+
LLVM_DEBUG(dbgs()
976+
<< "FnSpecialization: Insufficient Latency Savings ("
977+
<< B.Latency << " < " << MinLatencySavings * FuncSize / 100
978+
<< ")\n");
978979
return false;
979980
}
980981
// Maximum codesize growth.

0 commit comments

Comments
 (0)