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

--- Comment #8 from ktkachov at gcc dot gnu.org ---
My proposed approach is to look into the else and then basic blocks and gather
whether they set or clobber the CC reg.
Then, emit them in such an order so that the use of the CC reg comes first, or
bail if that's not possible.

This fixes the testcase and has no impact on codegen for SPEC2006 from a quick
look I had.

I'll be testing the patch further

Reply via email to