https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124959

--- Comment #2 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
It's r11-221-gfb062a8b7bca66, i.e. the first commit in the cris-decc0ification
series.

It was my first guess, as there's this comment in all the
hoist-register-pressure-[123].c:
"The rtl hoist pass requires that the expression to be hoisted can
be assigned without clobbering cc.  For a PLUS rtx on S/390 this
requires a load address instruction which is fine on 64 bit but
cannot be used on 31 bit since it does a 31 bit add only."

So, CRIS is kind-of in the same situation: cc is affected by most instructions
including adds forming addresses (but with notable exceptions).  Since the
cris-decc0ification was actually a small performance improvement as-a-whole,
I'm just going to adjust the test-cases in the same way as for S/390 (but
without introducing typos, hopefully) and move on.  That said, there *may*
still be a (small?) win within reach by tweaking the related optimization in
general (i.e. also covering S/390 32-bit), or by adding more-or-less
CRIS-specific handling here.  Not me, or at least not today, and likely not
this decade.

Reply via email to