* [PATCH] Fix PR77677
@ 2016-09-22 12:14 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2016-09-22 12:14 UTC (permalink / raw)
To: gcc-patches
This avoids some more TREE_OVERFLOWs in the IL (which now confuses IPA
VRP).
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
Richard.
2016-09-22 Richard Biener <rguenther@suse.de>
PR middle-end/77677
* gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
from constant folding results.
(gimple_resimplify2): Likewise.
(gimple_resimplify3): Likewise.
Index: gcc/gimple-match-head.c
===================================================================
--- gcc/gimple-match-head.c (revision 240342)
+++ gcc/gimple-match-head.c (working copy)
@@ -89,6 +89,8 @@ gimple_resimplify1 (gimple_seq *seq,
if (tem != NULL_TREE
&& CONSTANT_CLASS_P (tem))
{
+ if (TREE_OVERFLOW_P (tem))
+ tem = drop_tree_overflow (tem);
res_ops[0] = tem;
res_ops[1] = NULL_TREE;
res_ops[2] = NULL_TREE;
@@ -134,6 +136,8 @@ gimple_resimplify2 (gimple_seq *seq,
if (tem != NULL_TREE
&& CONSTANT_CLASS_P (tem))
{
+ if (TREE_OVERFLOW_P (tem))
+ tem = drop_tree_overflow (tem);
res_ops[0] = tem;
res_ops[1] = NULL_TREE;
res_ops[2] = NULL_TREE;
@@ -194,6 +198,8 @@ gimple_resimplify3 (gimple_seq *seq,
if (tem != NULL_TREE
&& CONSTANT_CLASS_P (tem))
{
+ if (TREE_OVERFLOW_P (tem))
+ tem = drop_tree_overflow (tem);
res_ops[0] = tem;
res_ops[1] = NULL_TREE;
res_ops[2] = NULL_TREE;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-22 12:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-22 12:14 [PATCH] Fix PR77677 Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).