https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58033
--- Comment #6 from Oleg Endo ---
Another example on SH:
const char* test (const char* s0, int c, int* rout)
{
int r = 0;
for (int i = 0; i < c; ++i)
r += s0[i];
*rout = r;
return s0;
}
compiled with -O2:
_test:
cmp/pl r
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58033
--- Comment #5 from Oleg Endo ---
Another somewhat related SH example, compiled with -m4 -O2 -ml on rev 205313:
int
foo1 (long long value)
{
const long long constant = 0xc0008000LL;
if (value < constant)
return 1;
else
retu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58033
--- Comment #4 from Teresa Johnson ---
On Tue, Jul 30, 2013 at 2:40 PM, olegendo at gcc dot gnu.org
wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58033
>
> --- Comment #3 from Oleg Endo ---
> Created attachment 30574
> --> http://gcc.gn
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58033
--- Comment #3 from Oleg Endo ---
Created attachment 30574
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30574&action=edit
bbro dump
(In reply to Teresa Johnson from comment #2)
>
> I assume it is the above branch that is the issue (not th
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58033
--- Comment #2 from Teresa Johnson ---
On Tue, Jul 30, 2013 at 2:00 PM, olegendo at gcc dot gnu.org
wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58033
>
> Bug ID: 58033
>Summary: counterproductive bb-reorder
>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58033
--- Comment #1 from Oleg Endo ---
... according to the changelog you've been doing some things on bb-reorder.c,
maybe you have an idea?