On 05/22/2015 02:27 AM, Mikhail Maltsev wrote:
This patch fixes a bug introduced by refactoring. A cast from rtx_insn
to rtx_jump_insn in fix_crossing_conditional_branches was placed before
the check, and that caused ICE if the instruction is actually a call,
rather than a jump.

Bootstrapped/regtested on x86_64 linux and tested the regressed case
(PR34999) on aarch64 crosscompiler using the provided profiling data.

OK for trunk?

-- Regards, Mikhail Maltsev


pr66237.clog


gcc/ChangeLog:

2015-05-22  Mikhail Maltsev<malts...@gmail.com>

        PR rtl-optimization/66237
        * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
        location of an "as_a" cast.
OK.
jeff

Reply via email to