[Bug tree-optimization/90883] Generated code is worse if returned struct is unnamed

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 6 07:49:00 GMT 2020


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

--- Comment #33 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kito Cheng <kito@gcc.gnu.org>:

https://gcc.gnu.org/g:46275300312b44e1388b86a45f1600a5a1722303

commit r10-7055-g46275300312b44e1388b86a45f1600a5a1722303
Author: Kito Cheng <kito.cheng@sifive.com>
Date:   Tue Mar 3 14:16:42 2020 +0800

    re PR tree-optimization/90883 (Generated code is worse if returned struct
is unnamed)

    After add --param max-inline-insns-size=1 all target will remove the
    redundant store at dse1, except some targets like AArch64 and MIPS will
    expand the struct initialization into loop due to CLEAR_RATIO.

    Tested on cross compiler of riscv32, riscv64, x86, x86_64, mips, mips64,
    aarch64, nds32 and arm.

    gcc/testsuite/ChangeLog

        PR tree-optimization/90883
        * g++.dg/tree-ssa/pr90883.c: Add --param max-inline-insns-size=1.
        Add aarch64-*-* mips*-*-* to XFAIL.


More information about the Gcc-bugs mailing list