Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
delta cmdline
#!/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
You can’t perform that action at this time.