diff options
author | Matt Turner <[email protected]> | 2015-07-12 18:01:54 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-07-29 09:34:52 -0700 |
commit | b568a5f6a8c6bb07b27e9badce01a8a73ba56c03 (patch) | |
tree | a1dca744fec47f964b96a9c5c810c2a48de3b948 | |
parent | 29ef7a9f19265308e7852c0f8920e0f520f08df3 (diff) |
util: Avoid double promotion.
Reviewed-by: Iago Toral Quiroga <[email protected]>
-rw-r--r-- | src/util/register_allocate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c index 2ad8c3ce11a..95be20fcc1b 100644 --- a/src/util/register_allocate.c +++ b/src/util/register_allocate.c @@ -648,7 +648,7 @@ ra_get_best_spill_node(struct ra_graph *g) float cost = g->nodes[n].spill_cost; float benefit; - if (cost <= 0.0) + if (cost <= 0.0f) continue; if (g->nodes[n].in_stack) |