OSDN Git Service

PR rtl-optimization/46804
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Dec 2010 16:40:51 +0000 (16:40 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Dec 2010 16:40:51 +0000 (16:40 +0000)
commit15a7b0e3d162ad95f6b6218465cb1552ce3d2914
treee5ca82aa3aba1e90db5500f99d8634be51361dd6
parentb66db81145f6b4ca10c79bd5b58e425f860e7bed
PR rtl-optimization/46804
* regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
on the setter of src_reg rather than on insn.  If it is
equal to the setter's original SET_SRC, replace it with its
zero or sign extension instead of dropping it.

* gfortran.dg/pr46804.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167695 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/regmove.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr46804.f90 [new file with mode: 0644]