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

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

https://gcc.gnu.org/g:aa972d027437784686dfc66180dc1b640e7dbb39

commit r15-7495-gaa972d027437784686dfc66180dc1b640e7dbb39
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Tue Feb 11 15:13:07 2025 -0800

    ifcvt: Don't speculation move inline-asm [PR102150]

    So unlike loop invariant motion, moving an inline-asm out of an
    if is not always profitable and the cost estimate for the instruction
    inside inline-asm is unknown.

    This is a regression from GCC 4.6 which didn't speculatively move
inline-asm
    as far as I can tell.
    Bootstrapped and tested on x86_64-linux-gnu.

            PR rtl-optimization/102150
    gcc/ChangeLog:

            * ifcvt.cc (cheap_bb_rtx_cost_p): Return false if the insn
            has an inline-asm in it.

    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Reply via email to