PR optimization/9786

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Wed Sep 17 01:44:00 GMT 2003


    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.

I disagree in reason, but not in effect.  The cited insn may indeed trap
if the input were a signaling NaN, but if we delete it, then some *other*
insn will trap instead, which is fine.

However, note that this question is somewhat vacuuous because the
point is that the reg-stack code seems to feel the insn actually shouldn't
be emitted.  So that if it indeed *shouldn't* be deleted, then what *do*
we do, since the code seems to require it to be deleted?



More information about the Gcc mailing list