aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-cp.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-12-10 22:04:57 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-12-10 22:04:57 +0100
commit27f418b8ec6d0a95c10844e468d2d579ea16d826 (patch)
treede562f81b0d027b6f91efc28e1da1363385a1798 /gcc/ipa-cp.c
parent6b24e342cb30abb5c13e3092929837545a5bd49e (diff)
downloadgcc-27f418b8ec6d0a95c10844e468d2d579ea16d826.zip
gcc-27f418b8ec6d0a95c10844e468d2d579ea16d826.tar.gz
gcc-27f418b8ec6d0a95c10844e468d2d579ea16d826.tar.bz2
re PR ipa/92883 (ICE in compare_values_warnv)
PR ipa/92883 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather than *jfunc->m_vr to intersect. Formatting fix. * gcc.dg/ipa/pr92883.c: New test. From-SVN: r279194
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r--gcc/ipa-cp.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index 14064ae..1a80ccb 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -2369,12 +2369,10 @@ propagate_vr_across_jump_function (cgraph_edge *cs, ipa_jump_func *jfunc,
value_range vr;
if (TREE_CODE_CLASS (operation) == tcc_unary)
- {
- ipa_vr_operation_and_type_effects (&vr,
- &src_lats->m_value_range.m_vr,
- operation, param_type,
- operand_type);
- }
+ ipa_vr_operation_and_type_effects (&vr,
+ &src_lats->m_value_range.m_vr,
+ operation, param_type,
+ operand_type);
/* A crude way to prevent unbounded number of value range updates
in SCC components. We should allow limited number of updates within
SCC, too. */
@@ -2400,7 +2398,7 @@ propagate_vr_across_jump_function (cgraph_edge *cs, ipa_jump_func *jfunc,
NOP_EXPR,
param_type,
jfunc->m_vr->type ()))
- vr.intersect (*jfunc->m_vr);
+ vr.intersect (jvr);
}
return dest_lat->meet_with (&vr);
}