This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR optimization/9786
- From: Mike Stump <mrs at apple dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 16 Sep 2003 14:05:51 -0700
- Subject: Re: PR optimization/9786
On Monday, September 15, 2003, at 11:51 PM, Eric Botcazou wrote:
Olivier Hainque proposed a patch two months ago
http://gcc.gnu.org/ml/gcc-patches/2003-07/msg01772.html
but it has not been applied yet because there is a controversy about
the
following question:
Is it ok to delete a no-op insn that can trap?
The question is simple, but probably not specific enough. As it
stands, the answer is probably no. But, in reading the referenced
message, it sounds like we know that the no-op doesn't trap, and
therefore, we can change it, optimize it based on the knowledge that it
doesn't trap and therefore, delete it.