From: Xinliang David Li <davidxl@google.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Fix for PR 48988
Date: Mon, 23 May 2011 08:59:00 -0000 [thread overview]
Message-ID: <BANLkTim5Syqb9nubsUgtbdZ6J8KxpzB+Uw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 370 bytes --]
Hi, the following trial patch fixed PR 48988 which is a regression.
Bootstrap and tested on x86/linux. Verified the reported failure is fixed.
Ok for trunk?
David
2011-05-22 David Li <davidxl@google.com>
PR tree-optimization/48988
* tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
Initialize has_valid_pred for each pred chain.
[-- Attachment #2: u.p --]
[-- Type: application/octet-stream, Size: 644 bytes --]
2011-05-22 David Li <davidxl@google.com>
PR tree-optimization/48988
* tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
Initialize has_valid_pred for each pred chain.
Index: tree-ssa-uninit.c
===================================================================
--- tree-ssa-uninit.c (revision 173837)
+++ tree-ssa-uninit.c (working copy)
@@ -358,6 +358,8 @@ convert_control_dep_chain_into_preds (VE
for (i = 0; i < num_chains; i++)
{
VEC(edge, heap) *one_cd_chain = dep_chains[i];
+
+ has_valid_pred = false;
for (j = 0; j < VEC_length (edge, one_cd_chain); j++)
{
gimple cond_stmt;
next reply other threads:[~2011-05-22 23:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-23 8:59 Xinliang David Li [this message]
2011-05-23 10:09 ` Richard Guenther
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTim5Syqb9nubsUgtbdZ6J8KxpzB+Uw@mail.gmail.com \
--to=davidxl@google.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).