ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.

gcc/ChangeLog:

2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>

	* ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.

From-SVN: r232725
This commit is contained in:
Kugan Vivekanandarajah 2016-01-22 12:09:58 +00:00 committed by Kugan Vivekanandarajah
parent 5ac6cdbb50
commit d8126ae1cf
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
* ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
2016-01-22 Christian Bruel <christian.bruel@st.com>
* config/arm/arm-c.c (arm_pragma_target_parse):

View File

@ -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);