add reginfo to basic ops

This commit is contained in:
water
2020-11-27 14:46:55 -05:00
parent a9cfa19f92
commit 4fb8381105
6 changed files with 1101 additions and 394 deletions
+10
View File
@@ -699,4 +699,14 @@ int Function::get_failed_basic_op_count() {
}
}
return count;
}
int Function::get_reginfo_basic_op_count() {
int count = 0;
for (auto& x : basic_ops) {
if (x->reg_info_set) {
count++;
}
}
return count;
}