Re: question on optimizing calls to library functions

2008-12-13 Thread Toon Moene
Paolo Bonzini wrote: The main difference that springs to mind: SIN is built-in, MATMUL is a library function. In gcc/builtin.defs, one finds Not just that: SIN is a pure (or const, depending on -frounding-math) function, which can be subject to CSE and DCE. I don't see anything suggesting th

Re: question on optimizing calls to library functions

2008-12-11 Thread Paolo Bonzini
> The main difference that springs to mind: SIN is built-in, MATMUL is a > library > function. In gcc/builtin.defs, one finds Not just that: SIN is a pure (or const, depending on -frounding-math) function, which can be subject to CSE and DCE. I don't see anything suggesting that for MATMUL in

question on optimizing calls to library functions

2008-12-10 Thread Daniel Franke
Hi all. While looking at PR fortran/22572, I wondered where the difference between the following two programs might be: $> cat matmul.f90 REAL, DIMENSION(1,1), PARAMETER :: a = 1.0, b = 2.0 REAL, DIMENSION(1,1) :: c c = MATMUL(a, b) c = MATMUL(a, b) end $> cat sin.f90 REAL, DIMENSION(