public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Richard Biener <rguenth@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/loop-unswitch-support-switches] Use NSDMI for predicate class Date: Tue, 24 May 2022 11:48:26 +0000 (GMT) [thread overview] Message-ID: <20220524114826.ACE843830677@sourceware.org> (raw) https://gcc.gnu.org/g:271072ca259dd285e7723d9bf6da7295e4090dfa commit 271072ca259dd285e7723d9bf6da7295e4090dfa Author: Richard Biener <rguenther@suse.de> Date: Tue May 24 13:47:48 2022 +0200 Use NSDMI for predicate class Use NSDMI for predicate class Diff: --- gcc/tree-ssa-loop-unswitch.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gcc/tree-ssa-loop-unswitch.cc b/gcc/tree-ssa-loop-unswitch.cc index d2898bdd63f..96c7217e805 100644 --- a/gcc/tree-ssa-loop-unswitch.cc +++ b/gcc/tree-ssa-loop-unswitch.cc @@ -109,9 +109,7 @@ struct unswitch_predicate /* CTOR for a switch edge predicate. */ unswitch_predicate (tree cond, tree lhs_, int edge_index_, edge e, const int_range_max& edge_range) - : condition (cond), lhs (lhs_), true_range (edge_range), false_range (), - merged_true_range (), merged_false_range (), - edge_index (edge_index_) + : condition (cond), lhs (lhs_), true_range (edge_range), edge_index (edge_index_) { gcc_assert (!(e->flags & (EDGE_TRUE_VALUE|EDGE_FALSE_VALUE)) && irange::supports_type_p (TREE_TYPE (lhs))); @@ -125,7 +123,6 @@ struct unswitch_predicate /* CTOR for a GIMPLE condition statement. */ unswitch_predicate (gcond *stmt) - : true_range (), false_range (), merged_true_range (), merged_false_range () { if (EDGE_SUCC (gimple_bb (stmt), 0)->flags & EDGE_TRUE_VALUE) edge_index = 0; @@ -173,10 +170,10 @@ struct unswitch_predicate tree lhs; /* Initial ranges (when the expression is true/false) for the expression. */ - int_range_max true_range, false_range; + int_range_max true_range = {}, false_range = {}; /* Modified range that is part of a predicate path. */ - int_range_max merged_true_range, merged_false_range; + int_range_max merged_true_range = {}, merged_false_range = {}; /* For switch predicates, index of the edge the predicate belongs to in the successor vector. */
reply other threads:[~2022-05-24 11:48 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220524114826.ACE843830677@sourceware.org \ --to=rguenth@gcc.gnu.org \ --cc=gcc-cvs@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: linkBe 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).