Last active
October 20, 2016 00:13
-
-
Save dcci/5f674b93f8bfeae393e01bc35a9b9228 to your computer and use it in GitHub Desktop.
delta cmdline
This file contains 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 | |
/home/davide/work/llvm-monorepo/build/bin/opt @$1 /home/davide/work/llvm-monorepo/build/bin/unopt.ll -o - | /home/davide/work/llvm-monorepo/build/bin/lli | grep ^1 | |
ret_sane=$? | |
/home/davide/work/llvm-monorepo/build/bin/opt-broken @$1 /home/davide/work/llvm-monorepo/build/bin/unopt.ll -o - | /home/davide/work/llvm-monorepo/build/bin/lli | grep ^-1 | |
ret_broken=$? | |
[[ $ret_sane == 0 && $ret_broken == 0 ]] && exit 0 | |
exit 1 | |
### | |
./opt -instnamer | |
### | |
#!/bin/sh | |
ulimit -t 2; /home/davide/work/llvm-monorepo/build/bin/opt -instcombine -inline -sroa -jump-threading -loop-rotate -licm -loop-unswitch -simplifycfg -instcombine $1 -o - | /home/davide/work/llvm-monorepo/build/bin/lli | grep ^1 | |
ret_sane=$? | |
ulimit -t 2; /home/davide/work/llvm-monorepo/build/bin/opt-broken -instcombine -inline -sroa -jump-threading -loop-rotate -licm -loop-unswitch -simplifycfg -instcombine $1 -o - | /home/davide/work/llvm-monorepo/build/bin/lli | grep ^-1 | |
ret_broken=$? | |
[[ $ret_sane == 0 && $ret_broken == 0 ]] && exit 0 | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment