re PR tree-optimization/90883 (Generated code is worse if returned struct is unnamed)
authorKito Cheng <kito.cheng@sifive.com>
Tue, 3 Mar 2020 06:16:42 +0000 (14:16 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 6 Mar 2020 07:48:25 +0000 (15:48 +0800)
commit46275300312b44e1388b86a45f1600a5a1722303
treed82319bedc82c4d45ef30578a37b9c2f1140b9b8
parent5358e8f5800daa0012fc9d06705d64bbb21fa07b
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.
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr90883.C