This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Non-call exceptions versus cse
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: aph at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 25 Nov 02 11:00:21 EST
- Subject: Re: Non-call exceptions versus cse
Well, AFAICS the code in question scans backwards one insn and tries
to replace an operand in the current insn. It doesn't scan any
further than that.
OK, I missed the point that you were patching: the ChangeLog entry
misled me.
I would be quite happy simply to check if the previous insn
may_trap_p(), in which case we shouldn't do the replacement. My
previous attempt at a patch did that...
I think both are needed: you set a flag if you cross an EH (but not just
a block) boundary and you test that flag if the insn may trap.