aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtlanal.cc')
-rw-r--r--gcc/rtlanal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rtlanal.cc b/gcc/rtlanal.cc
index 7ad67af..86a5e47 100644
--- a/gcc/rtlanal.cc
+++ b/gcc/rtlanal.cc
@@ -5772,7 +5772,7 @@ pattern_cost (rtx pat, bool speed)
return 0;
cost = set_src_cost (SET_SRC (set), GET_MODE (SET_DEST (set)), speed);
- return cost > 0 ? cost : COSTS_N_INSNS (1);
+ return MAX (COSTS_N_INSNS (1), cost);
}
/* Calculate the cost of a single instruction. A return value of zero