llvm-project/polly/test/create_ll.sh

12 lines
242 B
Bash
Raw Normal View History

#!/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}
rm ${SFILE}