This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization bug
- To: law at cygnus dot com
- Subject: Re: optimization bug
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Mon, 22 Sep 1997 22:54:54 -0700
- cc: Weiwen Liu <liu at hepvms dot physics dot yale dot edu>, egcs-bugs at cygnus dot com
I think combine never should have created the USE insn in the first place.
The USE insn should only be created when combine can't the insn setting and/or
using a reg in the current block, which implies that the reg must be live
in multiple blocks, and the insn using it in the current block has been
optimized away. Neither is true in this case, the reg is live in a single
block, and the insn using it is still there.
Since the local-alloc optimization only applies to variables that are set
and used in a single block, then we should never have any combiner USE insns
emitted for variables which are eligible for the update_equiv_regs
optimization.
I need to look at this some more though. I built egcs on an alpha-dec-osf4.0
system here, but gdb isn't working right, so I started another build on a
different system which I know has a working gdb.
Jim