diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 965dd645fff1..92c5bda3f257 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-01-22 Kugan Vivekanandarajah + + * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr. + 2016-01-22 Christian Bruel * config/arm/arm-c.c (arm_pragma_target_parse): diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 06a9aa2720c1..d62c70405dbf 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -402,9 +402,6 @@ static void ipa_set_jf_constant (struct ipa_jump_func *jfunc, tree constant, struct cgraph_edge *cs) { - constant = unshare_expr (constant); - if (constant && EXPR_P (constant)) - SET_EXPR_LOCATION (constant, UNKNOWN_LOCATION); jfunc->type = IPA_JF_CONST; jfunc->value.constant.value = unshare_expr_without_location (constant);