[PR87815]Don't generate shift sequence for load replacement in DSE when the mode...
authorRenlin Li <renlin.li@arm.com>
Mon, 12 Nov 2018 16:47:24 +0000 (16:47 +0000)
committerRenlin Li <renlin@gcc.gnu.org>
Mon, 12 Nov 2018 16:47:24 +0000 (16:47 +0000)
commite657564359c300bde7bcbba12e30b5e3f80f8c6c
tree4062e8bcf6db37a7a42f85411b47c89b727a2129
parentd5cc6de1be9d8fed0b810596efd467d6bee6aa03
[PR87815]Don't generate shift sequence for load replacement in DSE when the mode size is not compile-time constant

The patch adds a check if the gap is compile-time constant.

This happens when dse decides to replace the load with previous store value.
The problem is that, shift sequence could not accept compile-time non-constant
mode operand.

gcc/

2018-11-12  Renlin Li  <renlin.li@arm.com>

PR target/87815
* dse.c (get_stored_val): Add check for compile-time
constantness of gap.

gcc/testsuite/

2018-11-12  Renlin Li  <renlin.li@arm.com>

PR target/87815
* gcc.target/aarch64/sve/pr87815.c: New.

From-SVN: r266033
gcc/ChangeLog
gcc/dse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/sve/pr87815.c [new file with mode: 0644]