aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-cp.c
diff options
context:
space:
mode:
authorKugan Vivekanandarajah <kuganv@linaro.org>2016-09-23 10:25:09 +0000
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>2016-09-23 10:25:09 +0000
commit1e401340719c3bb64382f81cf95607898139487f (patch)
tree1648accc5ce0a86f41e47368debe12c2739bfd5d /gcc/ipa-cp.c
parent8ed3eeac20004dc354bab2a5a0eed027d441b05e (diff)
downloadgcc-1e401340719c3bb64382f81cf95607898139487f.zip
gcc-1e401340719c3bb64382f81cf95607898139487f.tar.gz
gcc-1e401340719c3bb64382f81cf95607898139487f.tar.bz2
Drop TREE_OVERFLOW
gcc/ChangeLog: 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org> PR ipa/77677 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW from constant while creating value range. gcc/testsuite/ChangeLog: 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org> PR ipa/77677 * gcc.dg/torture/pr77677.c: New test. From-SVN: r240420
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r--gcc/ipa-cp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index fdcce16..95a2a1e 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -2065,6 +2065,8 @@ propagate_vr_accross_jump_function (cgraph_edge *cs,
tree val = ipa_get_jf_constant (jfunc);
if (TREE_CODE (val) == INTEGER_CST)
{
+ if (TREE_OVERFLOW_P (val))
+ val = drop_tree_overflow (val);
jfunc->vr_known = true;
jfunc->m_vr.type = VR_RANGE;
jfunc->m_vr.min = val;