diff options
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 99228f36d8f..195853401e5 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -1218,7 +1218,7 @@ avoid_expensive_constant (enum machine_mode mode, optab binoptab, if (mode != VOIDmode && optimize && CONSTANT_P (x) - && rtx_cost (x, binoptab->code, speed) > rtx_cost (x, SET, speed)) + && rtx_cost (x, binoptab->code, speed) > set_src_cost (x, speed)) { if (CONST_INT_P (x)) { |