diff options
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index e210881289e..25445a10924 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -1669,7 +1669,7 @@ gimple_divmod_values_to_profile (gimple stmt, histogram_values *values) VEC_reserve (histogram_value, heap, *values, 3); - if (is_gimple_reg (divisor)) + if (TREE_CODE (divisor) == SSA_NAME) /* Check for the case where the divisor is the same value most of the time. */ VEC_quick_push (histogram_value, *values, |