Use strict_low_part for loading a constant only if it is cheaper
commitd4177981766bb4b631e59a6972a67b89c3d7d0f9
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Jun 2014 10:37:14 +0000 (18 10:37 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Jun 2014 10:37:14 +0000 (18 10:37 +0000)
tree7d9cbd498f3d157c295b5573cf648b71a8134c51
parente51f8b8fed37982559c18c2b76f65b753de10347
Use strict_low_part for loading a constant only if it is cheaper

PR rtl-optimization/54555
* postreload.c (move2add_use_add2_insn): Substitute
STRICT_LOW_PART only if it is cheaper.

testsuite/:
PR rtl-optimization/54555
* gcc.target/m68k/pr54555.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211777 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/postreload.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/m68k/pr54555.c [new file with mode: 0644]