This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]