]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
authorKugan Vivekanandarajah <kuganv@linaro.org>
Fri, 22 Jan 2016 12:09:58 +0000 (12:09 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Fri, 22 Jan 2016 12:09:58 +0000 (12:09 +0000)
gcc/ChangeLog:

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

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

From-SVN: r232725

gcc/ChangeLog
gcc/ipa-prop.c

index 965dd645fff1f7b3fa21ec9295b6b5c4b456bcb6..92c5bda3f257199c2735b29d46f53094764ff72c 100644 (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):
index 06a9aa2720c120ea71ef96c0dea24df9bb221244..d62c70405dbf65c16b1130f159d20452310eec1d 100644 (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);