This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/20287] New: delete_trivially_dead_insns doesn't
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2005 17:25:02 -0000
- Subject: [Bug rtl-optimization/20287] New: delete_trivially_dead_insns doesn't
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This patch:
2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR optimization/12142
* cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
uses of the register in the SET_SRC. Remove unnecessary argument.
* pa.c (legitimize_pic_address): Before reload, use a scratch register
for the intermediate result in loading the address of a SYMBOL_REF.
Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
which loads the SYMBOL_REF address.
broke delete_trivially_dead_insns ability to grok multi-insn sequences that
set a register.
A patch is here:
http://gcc.gnu.org/ml/gcc-patches/2004-05/msg01037.html
--
Summary: delete_trivially_dead_insns doesn't
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Keywords: missed-optimization, patch
Severity: normal
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: amylaar at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 17652
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20287