summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-03-25 15:50:44 +0000
committerTobias Grosser <tobias@grosser.es>2014-03-25 15:50:44 +0000
commit5fa36c0ff6ff8bbba99fdffda2d221cc8634578e (patch)
treec184f696b18d57ecde1a33495db701163c7a8425
parent03c9207c34112ab3d4ed60e40c55f6a377f40d35 (diff)
downloadbcm5719-llvm-5fa36c0ff6ff8bbba99fdffda2d221cc8634578e.tar.gz
bcm5719-llvm-5fa36c0ff6ff8bbba99fdffda2d221cc8634578e.zip
Updated test/create_ll.sh to work with old & new clang versions.
We explicitly specifying all filenames instead of assuming some naming convention used by clang and opt. Contributed-by: Johannes Doerfert <doerfert@cs.uni-saarland.de> llvm-svn: 204726
-rwxr-xr-xpolly/test/create_ll.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/polly/test/create_ll.sh b/polly/test/create_ll.sh
index d4fbf4496fd..feb8f8663ab 100755
--- a/polly/test/create_ll.sh
+++ b/polly/test/create_ll.sh
@@ -1,11 +1,8 @@
#!/bin/sh
-clang -S -emit-llvm -O0 $1
-
-SFILE=`echo $1 | sed -e 's/\.c/.s/g'`
LLFILE=`echo $1 | sed -e 's/\.c/.ll/g'`
-opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars \
--instnamer ${SFILE} -S > ${LLFILE}
+clang -c -S -emit-llvm -O0 $1 -o ${LLFILE}
-rm ${SFILE}
+opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars \
+-instnamer ${LLFILE} -S -o ${LLFILE}
OpenPOWER on IntegriCloud