public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39280]  New: Optimizing integer power
@ 2009-02-23 19:50 tkoenig at gcc dot gnu dot org
  2009-02-24 10:10 ` [Bug fortran/39280] " rguenth at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2009-02-23 19:50 UTC (permalink / raw)
  To: gcc-bugs

$ cat foo.f90
subroutine foo
  implicit none
  integer :: i,n
  do i=1,10
    n = (-1)**(i+1)
    call bar(n)
  end do
end subroutine foo
$ gfortran -S -O2 -fdump-tree-optimized foo.f90
...

  i = i + 1;
  n.0 = _gfortran_pow_i4_i4 (-1, i);
  n = n.0;
  bar (&n);

We could eliminate the call to _gfortran_pow_i4_i4.


-- 
           Summary: Optimizing integer power
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39280


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-39280-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2013-08-09  9:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-23 19:50 [Bug fortran/39280] New: Optimizing integer power tkoenig at gcc dot gnu dot org
2009-02-24 10:10 ` [Bug fortran/39280] " rguenth at gcc dot gnu dot org
2009-02-24 12:01 ` burnus at gcc dot gnu dot org
2009-02-24 12:14 ` rguenther at suse dot de
2009-03-28 14:12 ` fxcoudert at gcc dot gnu dot org
2010-05-09 21:09 ` dfranke at gcc dot gnu dot org
2010-05-09 21:29 ` dominiq at lps dot ens dot fr
2010-05-10  8:41 ` rguenther at suse dot de
     [not found] <bug-39280-4@http.gcc.gnu.org/bugzilla/>
2013-08-09  9:18 ` tkoenig at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).