update readme and fix unused function issue (#821)

This commit is contained in:
water111
2021-09-03 19:19:51 -04:00
committed by GitHub
parent 3d7010b05d
commit a96eb800c4
7 changed files with 108 additions and 39 deletions
+2 -1
View File
@@ -288,7 +288,8 @@ bool is_gpr_2_imm_int(const Instruction& instr,
MatchParam<Register> src,
MatchParam<int32_t> imm) {
return kind == instr.kind && dst == instr.get_dst(0).get_reg() &&
src == instr.get_src(0).get_reg() && imm == instr.get_src(1).get_imm();
src == instr.get_src(0).get_reg() && instr.get_src(1).is_imm() &&
imm == instr.get_src(1).get_imm();
}
/*!