This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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] |
with a fmadds corresponding to 's = s + a1*b1'.
So even at -O3 the gcc optimizer is unable to see that
a1*b1 is always zero, even if b1 is a constant
Speaking of optimization, I think the front-end should not try to do any optimization itself, unless it has information that are not passed to the next stages.
One example could be inlining. This is why I would understand better why the channel variant in which I have hand-inlined some functions is faster than the oribinal version, while I have understood than contained functions are inlined (is this true? specially if the function is in a module?).
-- Janne Blomqvist
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |