[LLVMbugs] [Bug 15287] New: surfaceArea.cc from xplor-nih compiles ~30 times to slowly using -O1/-O2/-O3 -funroll-loops -fplugin-arg-dragonegg-llvm-option=-vectorize
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Feb 16 08:09:55 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15287
Bug ID: 15287
Summary: surfaceArea.cc from xplor-nih compiles ~30 times to
slowly using -O1/-O2/-O3 -funroll-loops
-fplugin-arg-dragonegg-llvm-option=-vectorize
Product: new-bugs
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: howarth at nitro.med.uc.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The largest remaining vectorization bottleneck in compiling xplor-nih with
-fplugin-arg-dragonegg-llvm-option=-vectorize is in the compilation of
intVar/surfaceArea.cc...
% time de-g++47 -c surfaceArea.cc -O1 -funroll-loops
-fplugin-arg-dragonegg-llvm-option=-vectorize -DX_MMAP_FLAGS=0 -DFORTRAN_INIT
-fno-common -DDARWIN -D_REENTRANT -DNDEBUG
-I/Users/howarth/xplor-nih-2.33/nmrPot/
-I/Users/howarth/xplor-nih-2.33/arch/Darwin_12_x86_64/include
-I/Users/howarth/xplor-nih-2.33/CDSlib -I/Users/howarth/xplor-nih-2.33/common
-I/Users/howarth/xplor-nih-2.33/intVar -I/Users/howarth/xplor-nih-2.33/fortlib
-I/Users/howarth/xplor-nih-2.33/surfD -I/Users/howarth/xplor-nih-2.33
-DCPLUSPLUS -DUSE_CDS_NAMESPACE -I/Users/howarth/xplor-nih-2.33/nmrPot/
-I/Users/howarth/xplor-nih-2.33/arch/Darwin_12_x86_64/include
...
60.843u 0.130s 1:00.98 99.9% 0+0k 0+13io 0pf+0w
% time de-g++47 -c surfaceArea.cc -O1 -funroll-loops -DX_MMAP_FLAGS=0
-DFORTRAN_INIT -fno-common -DDARWIN -D_REENTRANT -DNDEBUG
-I/Users/howarth/xplor-nih-2.33/nmrPot/
-I/Users/howarth/xplor-nih-2.33/arch/Darwin_12_x86_64/include
-I/Users/howarth/xplor-nih-2.33/CDSlib -I/Users/howarth/xplor-nih-2.33/common
-I/Users/howarth/xplor-nih-2.33/intVar -I/Users/howarth/xplor-nih-2.33/fortlib
-I/Users/howarth/xplor-nih-2.33/surfD -I/Users/howarth/xplor-nih-2.33
-DCPLUSPLUS -DUSE_CDS_NAMESPACE -I/Users/howarth/xplor-nih-2.33/nmrPot/
-I/Users/howarth/xplor-nih-2.33/arch/Darwin_12_x86_64/include
...
2.091u 0.120s 0:02.21 100.0% 0+0k 0+3io 0pf+0w
The non-vectorized LLVM IR generated with...
de-g++47 -c surfaceArea.cc -O1 -funroll-loops -DX_MMAP_FLAGS=0 -DFORTRAN_INIT
-fno-common -DDARWIN -D_REENTRANT -DNDEBUG
-I/Users/howarth/xplor-nih-2.33/nmrPot/
-I/Users/howarth/xplor-nih-2.33/arch/Darwin_12_x86_64/include
-I/Users/howarth/xplor-nih-2.33/CDSlib -I/Users/howarth/xplor-nih-2.33/common
-I/Users/howarth/xplor-nih-2.33/intVar -I/Users/howarth/xplor-nih-2.33/fortlib
-I/Users/howarth/xplor-nih-2.33/surfD -I/Users/howarth/xplor-nih-2.33
-DCPLUSPLUS -DUSE_CDS_NAMESPACE -I/Users/howarth/xplor-nih-2.33/nmrPot/
-I/Users/howarth/xplor-nih-2.33/arch/Darwin_12_x86_64/include
-fplugin-arg-dragonegg-emit-ir -S
is attached as surfaceArea.s and can be used to reproduce this problem as
follows...
% time /sw/opt/llvm-3.3/bin/opt -O1 -vectorize surfaceArea.s
...
30.187u 0.048s 0:30.53 98.9% 0+0k 0+0io 950pf+0w
% time /sw/opt/llvm-3.3/bin/opt -O1 surfaceArea.s
...
0.621u 0.011s 0:00.63 100.0% 0+0k 0+0io 0pf+0w
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130216/f0849465/attachment.html>
More information about the llvm-bugs
mailing list