PR rtl-optimization/70263
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Mar 2016 19:30:20 +0000 (19:30 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Mar 2016 19:30:20 +0000 (19:30 +0000)
commit1421f43cfb2e3a6d1ef2429660557a9d28465394
tree9cf27aeaf9c3ecf44225affe3b9bc74e867405db
parent82aab46acc041980b89e182b28eea20ce401bf05
PR rtl-optimization/70263
* ira.c (memref_used_between_p): Assert we found END in the insn chain.
(update_equiv_regs): When trying to move a store to after the insn
that sets the source of the store, make sure the store occurs after
the insn that sets the source of the store.  When successful note
the REG_EQUIV note created in the dump file.

PR rtl-optimization/70263
* gcc.c-torture/compile/pr70263-1.c: New test.
* gcc.target/i386/pr70263-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234344 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ira.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr70263-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr70263-2.c [new file with mode: 0644]