Make buttons a bitfield and fix let bug (#399)

* make pad buttons bitfields

* fix stupid let bug

* update tests
This commit is contained in:
water111
2021-04-29 20:25:45 -04:00
committed by GitHub
parent 70d93354eb
commit 56625bb0ee
15 changed files with 336 additions and 220 deletions
+2 -1
View File
@@ -359,7 +359,8 @@ SSA make_rc_ssa(const Function& function, const RegUsageInfo& rui, const Functio
auto as_set = dynamic_cast<const SetVarOp*>(op.get());
if (as_set) {
auto dst = as_set->dst().reg();
if (as_set->src().is_var()) {
if (as_set->src().is_var() ||
(as_set->src().kind() == SimpleExpression::Kind::FPR_TO_GPR)) {
auto src = as_set->src().get_arg(0).var().reg();
auto& ri = rui.op.at(op_id);
if (ri.consumes.find(src) != ri.consumes.end() &&