This patch adds the loop-level heuristics for determining whether branches are more profitable than conditional moves.
These heuristics apply to only inner-most loops.
Depends on D120231
Differential D120232
[SelectOpti][4/5] Loop Heuristics apostolakis on Feb 20 2022, 10:49 PM. Authored by
Details
This patch adds the loop-level heuristics for determining whether branches are more profitable than conditional moves. Depends on D120231
Diff Detail
Event TimelineComment Actions A high level comment. I saw ScalingUpFactor is used in many places. It may be better to directly use Scaled64 data type instead of uint64 to avoid that. Comment Actions I used ScalingUpFactor to get a decent precision without increasing compile time (due to non-integer ops), but it is a bit hacky and it seems better to directly use Scaled64.
|
Not clear about what the second condition actually means. What is the cost of select group?