From 5fa36c0ff6ff8bbba99fdffda2d221cc8634578e Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 25 Mar 2014 15:50:44 +0000 Subject: [PATCH] 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 llvm-svn: 204726 --- polly/test/create_ll.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/polly/test/create_ll.sh b/polly/test/create_ll.sh index d4fbf4496fd0..feb8f8663ab7 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}