public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: optimization/7120: Run once loop should *always* be unrolled Date: Wed, 26 Jun 2002 12:58:00 -0000 [thread overview] Message-ID: <20020626175601.20619.qmail@sources.redhat.com> (raw) The following reply was made to PR optimization/7120; it has been noted by GNATS. From: Richard Henderson <rth@twiddle.net> To: davem@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, rusty@rustcorp.com.au, gcc-gnats@gcc.gnu.org, gcc-patches@gcc.gnu.org Cc: Subject: Re: optimization/7120: Run once loop should *always* be unrolled Date: Wed, 26 Jun 2002 10:54:53 -0700 On Wed, Jun 26, 2002 at 06:02:10PM +0930, Alan Modra wrote: > + if (((INTVAL (initial_value) + INTVAL (increment)) > + & (((unsigned HOST_WIDE_INT) 1 > + << (GET_MODE_BITSIZE (GET_MODE (iteration_var)) - 1) > + << 1) - 1)) == INTVAL (final_value)) Need to use gen_int_mode here and for the final_value calulation. Suggest something like rtx incone = gen_int_mode (INTVAL (initial_value) + INTVAL (increment), GET_MODE (iteration_var)); if (incone == final_value) { ... } else { loop_info->n_iterations = 1; loop_info->final_value = incone; loop_info->final_equiv_value = incone; return 1; } r~
next reply other threads:[~2002-06-26 17:56 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-06-26 12:58 Richard Henderson [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-06-28 18:15 Richard Henderson 2002-06-26 19:26 Alan Modra 2002-06-26 3:06 Alan Modra 2002-06-25 21:29 Alan Modra 2002-06-25 20:56 Alan Modra 2002-06-25 9:26 davem 2002-06-25 9:21 rusty
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=20020626175601.20619.qmail@sources.redhat.com \ --to=rth@twiddle.net \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).