[polly] r204726 - Updated test/create_ll.sh to work with old & new clang versions.
Tobias Grosser
tobias at grosser.es
Tue Mar 25 08:50:44 PDT 2014
Author: grosser
Date: Tue Mar 25 10:50:44 2014
New Revision: 204726
URL: http://llvm.org/viewvc/llvm-project?rev=204726&view=rev
Log:
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 at cs.uni-saarland.de>
Modified:
polly/trunk/test/create_ll.sh
Modified: polly/trunk/test/create_ll.sh
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/create_ll.sh?rev=204726&r1=204725&r2=204726&view=diff
==============================================================================
--- polly/trunk/test/create_ll.sh (original)
+++ polly/trunk/test/create_ll.sh Tue Mar 25 10:50:44 2014
@@ -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}
More information about the llvm-commits
mailing list