From: Kugan Vivekanandarajah Date: Fri, 22 Jan 2016 12:09:58 +0000 (+0000) Subject: ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr. X-Git-Tag: basepoints/gcc-7~1393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8126ae1cfd39746a459b077d44d373d0bfe34a0;p=thirdparty%2Fgcc.git ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr. gcc/ChangeLog: 2016-01-22 Kugan Vivekanandarajah * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr. From-SVN: r232725 --- 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);