On -ftrapv vs. libcalls...

Joern Rennecke joern.rennecke@superh.com
Wed Sep 1 12:12:00 GMT 2004


> there.  Or else the REG_EQUAL note should be changed to be accurate, but 
> that would probably require creating a new RTL operator, e.g. multv.

No, that wouldn't work, because REG_EQUAL describes a value, but never
a side effect.
In general, a mulv can't be hoisted out of a loop that might have zero
iterations, but that is not apparent when you have a LIBCALL / RETVAL
sequence with only a REG_EQUAL note to describe the computation.



More information about the Gcc mailing list