2011-04-29 14:27:02 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
LLFILE=`echo $1 | sed -e 's/\.c/.ll/g'`
|
|
|
|
|
2014-03-25 23:50:44 +08:00
|
|
|
clang -c -S -emit-llvm -O0 $1 -o ${LLFILE}
|
2011-04-29 14:27:02 +08:00
|
|
|
|
2014-03-25 23:50:44 +08:00
|
|
|
opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars \
|
|
|
|
-instnamer ${LLFILE} -S -o ${LLFILE}
|