There is special Optional class which should be used to return invalid numeric value.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/CodeGen/TargetSchedule.cpp | ||
---|---|---|
364 | Can Throughput be converted to a Optional<double> and let us get rid of Unknown completely? |
Comment Actions
I got rid of "double Unknown = std::numeric_limits<double>::infinity();" - many tnx to Simon for this idea.
lib/CodeGen/TargetSchedule.cpp | ||
---|---|---|
369–376 | Remove Cycles and use WPR->Cycles directly (same for above). if (WPR->Cycles) and double Temp = NumUnits * 1.0 / WPR->Cycles; |
Can Throughput be converted to a Optional<double> and let us get rid of Unknown completely?