Improved flags analysis. Move the undefined optimization out into the plugin. Still have an issue where dead-store elimination is not happening :-(

This commit is contained in:
Peter Goodman
2016-02-03 12:24:34 -05:00
parent 410be0972b
commit 09d71cada2
10 changed files with 134 additions and 79 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ $DIR/third_party/bin/opt -O3 -o=$BIN.opt0.bc $1 || {
}
$DIR/third_party/bin/opt \
-load $DIR/build/libOptimize.$DYLIB_SUFFIX -deferred_inliner \
-load $DIR/build/libOptimize.$DYLIB_SUFFIX -intrinsic_optimizer \
-o=$BIN.opt1.bc $BIN.opt0.bc || {
printf "${RED}Could not optimize $BIN.opt0.bc${RESET}\n" > /dev/stderr
exit 1