Add more passes to ignore to opt-alive.sh, fix array printing bug
MODIFY
ir/type.cpp
ir/type.cpp
@@ -848,6 +848,9 @@ bool ArrayType::isArrayType() const {
}
void ArrayType::print(ostream &os) const {
+ if (children.empty())
+ os << "(empty array)";
+ else
os << '[' << elements << " x " << *children[0] << ']';
}

MODIFY
scripts/opt-alive.sh
scripts/opt-alive.sh
set -e
# IPO passes aren't supported ATM
-PASSES="argpromotion deadargelim globalopt hotcoldsplit inline ipconstprop ipsccp mergefunc partial-inliner tbaa insert-gcov-profiling -Os -Oz -O1 -O2 -O3"
+# insert-gcov-profiling, safe-stack, switch-to-lookup, pgo-instr-gen: inserts new global variables
+# place-safepoints: places new function calls (@do_safepoint)
+# loop-extract: extracts a top-level loop into a distinct function
+PASSES="argpromotion deadargelim globalopt hotcoldsplit inline ipconstprop ipsccp mergefunc partial-inliner tbaa insert-gcov-profiling switch-to-lookup safe-stack pgo-instr-gen loop-extract -Os -Oz -O1 -O2 -O3"
TV="-tv"
for p in $PASSES; do

Add more passes to ignore to opt-alive.sh, fix array printing bug (#210)