re PR rtl-optimization/84101 (-O3 and -ftree-vectorize trying too hard for function...
authorRichard Biener <rguenther@suse.de>
Wed, 3 Apr 2019 12:30:16 +0000 (12:30 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 3 Apr 2019 12:30:16 +0000 (12:30 +0000)
commitc51b04ec33fea61e89363fd5c94e38b4df8b12c1
treee7440e6cfa50fa3d5c54a54a830a3e63472e22b4
parent615792b72e34b084e4aa69aad7789f2ee30e2eed
re PR rtl-optimization/84101 (-O3 and -ftree-vectorize trying too hard for function returning trivial pair-of-uint64_t-structure)

2019-04-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/84101
* tree-vect-stmts.c: Include explow.h for hard_function_value,
regs.h for hard_regno_nregs.
(cfun_returns): New helper.
(vect_model_store_cost): When vectorizing a store to a decl
we return and the function ABI returns in a multi-reg location
account for the possible spilling that will happen.

* gcc.target/i386/pr84101.c: New testcase.

From-SVN: r270123
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr84101.c [new file with mode: 0644]
gcc/tree-vect-stmts.c