Created
March 24, 2023 01:02
-
-
Save eebssk1/be44200671c964de97d889c8830dfd34 to your computer and use it in GitHub Desktop.
android rom clang polly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PFL1="-mllvm -polly=true -mllvm -polly-run-inliner=true -mllvm -polly-run-dce=true -mllvm -polly-vectorizer=stripmine -mllvm -polly-detect-profitability-min-per-loop-insts=56 -mllvm -polly-2nd-level-tiling=true -mllvm -polly-opt-max-coefficient=31 -mllvm -polly-opt-max-constant-term=31" | |
PFLF="-Wno-unused-command-line-argument" | |
PFL2="-mllvm --hot-cold-split=true" | |
SKIP=false | |
O=-O0 | |
for i in "$@"; do | |
if [ "$i" = "-m32" ] || [ "$i" = "-m64" ] || [ "$i" = "-D__ASSEMBLY__" ] || [ "$i" = "-D_LIBC=1" ]; then | |
SKIP=true | |
break | |
fi | |
if [ "$i" = "-O3" ] || [ "$i" = "-O2" ] || [ "$i" = "-O1" ] || [ "$i" = "-Os" ] || [ "$i" = "-Oz" ]; then | |
O=$i | |
fi | |
done | |
if [ $SKIP = true ]; then | |
exec $0.r "$@" | |
fi | |
if [ "$O" = "-O3" ] || [ "$O" = "-O2" ] || [ "$O" = "-O1" ]; then | |
exec $0.r $PFL1 "$@" $PFLF | |
fi | |
if [ "$O" = "-Os" ] || [ "$O" = "-Oz" ]; then | |
exec $0.r $PFL2 "$@" $PFLF | |
fi | |
exec $0.r "$@" | |
#ADDI | |
#"-mllvm --enable-tail-merge=true", | |
#"-mllvm --enable-newgvn=true", | |
#"-mllvm --enable-loopinterchange=true", | |
#"-mllvm --enable-gvn-hoist=true", | |
#"-mllvm --optimize-regalloc=true", | |
#"-mllvm --use-gvn-after-vectorization=true", | |
#//"-mllvm --enable-partial-inlining=true", | |
#"-mllvm --disable-sched-live-uses=false", | |
#"-mllvm --disable-sched-stalls=false", | |
#//"-mllvm --unroll-allow-partial=true", | |
#"-mllvm --extra-vectorizer-passes=true", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment