re PR rtl-optimization/89965 (wrong code with -O -mtune=nano-x2 -fcaller-saves -fexpe...
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Apr 2019 16:20:21 +0000 (18:20 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Apr 2019 16:20:21 +0000 (18:20 +0200)
commit76416d899cb6d26088a9cd22da5a23914fec2ce6
treeec74ffabc483a16790bb4ff7ba1f5782a5fcdad0
parentb2e77a37a2c4b8165c542c93966c4a3874fde817
re PR rtl-optimization/89965 (wrong code with -O -mtune=nano-x2 -fcaller-saves -fexpensive-optimizations -fno-tree-dce -fno-tree-ter)

PR rtl-optimization/89965
* dce.c: Include rtl-iter.h.
(struct check_argument_load_data): New type.
(check_argument_load): New function.
(find_call_stack_args): Check for loads from stack slots still tracked
in sp_bytes and punt if any is found.

* gcc.target/i386/pr89965.c: New test.

From-SVN: r270323
gcc/ChangeLog
gcc/dce.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr89965.c [new file with mode: 0644]