diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-29 19:40:20 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-29 19:40:20 +0000 |
commit | d3cee69d8d446c9bd438868fcc6d9c71b279631d (patch) | |
tree | 645bc4e2cc150466118e298ff666849d6252a5c7 /gcc/gcse.c | |
parent | b9e83dce4f3fdff1ee8748526c773cca8bad1bfb (diff) | |
download | gcc-d3cee69d8d446c9bd438868fcc6d9c71b279631d.tar.gz |
PR rtl-optimization/16590
* gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
PR rtl-optimization/16590
* g++.dg/opt/loop1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86732 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c index 16d76fe4d6c..0d602801594 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -4463,7 +4463,9 @@ pre_delete (void) expr->reaching_reg = gen_reg_rtx (GET_MODE (SET_DEST (set))); - gcse_emit_move_after (expr->reaching_reg, SET_DEST (set), insn); + emit_insn_after (gen_move_insn (SET_DEST (set), + expr->reaching_reg), + insn); delete_insn (insn); occr->deleted_p = 1; SET_BIT (pre_redundant_insns, INSN_CUID (insn)); |