[LLVMbugs] [Bug 10033] New: -O3 -fplugin-arg-dragonegg-enable-gcc-optzns miscompiles rnflow.f90

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 27 05:48:27 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10033

           Summary: -O3 -fplugin-arg-dragonegg-enable-gcc-optzns
                    miscompiles rnflow.f90
           Product: dragonegg
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
        AssignedTo: baldrick at free.fr
        ReportedBy: howarth at nitro.med.uc.edu
                CC: llvmbugs at cs.uiuc.edu


While at r132184, the rnflow test case can be compiled with -O3
-fplugin-arg-dragonegg-enable-gcc-optzns, it appears to be miscompiled and runs
very slowly compared to when compiled with -O3
-fplugin-arg-dragonegg-enable-gcc-optzns -fno-tree-vectorize...

[MacPro:pb05/lin/source] howarth% /sw/lib/gcc4.5/bin/gfortran
-fplugin=/sw/lib/gcc4.5/lib/dragonegg.so -O3
-fplugin-arg-dragonegg-enable-gcc-optzns rnflow.f90 -fno-tree-vectorize -o
rnflow
[MacPro:pb05/lin/source] howarth% ./rnflow                                     
                                                                               
0: 0: 0.000 -> Read sequence
  0: 0: 1.146 -> extract extrema
  0: 0: 1.151 -> Generate raw transitions counts
  0: 0: 1.157 -> Compute Markov matrix
  0: 0: 1.158 -> Calculate theoretical rainflow
  0: 0:15.769 -> Simulate random markov sequences
  0: 0:15.959 -> Completed simulation #    1
  0: 0:16.149 -> Completed simulation #    2

[MacPro:pb05/lin/source] howarth% /sw/lib/gcc4.5/bin/gfortran
-fplugin=/sw/lib/gcc4.5/lib/dragonegg.so -O3
-fplugin-arg-dragonegg-enable-gcc-optzns rnflow.f90 -o rnflow
[MacPro:pb05/lin/source] howarth% ./rnflow                                     
                                                                               
0: 0: 0.001 -> Read sequence
  0: 0: 1.151 -> extract extrema
  0: 0: 1.157 -> Generate raw transitions counts
  0: 0: 1.163 -> Compute Markov matrix
  0: 0: 1.163 -> Calculate theoretical rainflow
  0: 2:47.038 -> Simulate random markov sequences

where the time required for "Calculate theoretical rainflow" has increased 11
fold and the completed simulations never appear. Since -fno-tree-vectorize
eliminates the problem it must lie in the vectorization optimizations.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list