| 1108 | } |
| 1109 | |
| 1110 | bool Differ::DoIdsMatchFuzzy(uint32_t src_id, uint32_t dst_id) { |
| 1111 | assert(dst_id != 0); |
| 1112 | const uint32_t mapped_dst_id = id_map_.MappedDstId(src_id); |
| 1113 | |
| 1114 | // Consider unmatched ids as a match. In function bodies, no result id is |
| 1115 | // matched yet and thus they are excluded from instruction matching when used |
| 1116 | // as parameters in subsequent instructions. |
| 1117 | if (mapped_dst_id == 0 || mapped_dst_id == dst_id) { |
| 1118 | return true; |
| 1119 | } |
| 1120 | |
| 1121 | // Int and Uint constants are interchangeable, match them in that case. |
| 1122 | if (AreIdenticalUintConstants(src_id, dst_id)) { |
| 1123 | return true; |
| 1124 | } |
| 1125 | |
| 1126 | return false; |
| 1127 | } |
| 1128 | |
| 1129 | bool Differ::DoesOperandMatchFuzzy(const opt::Operand& src_operand, |
| 1130 | const opt::Operand& dst_operand) { |
nothing calls this directly
no test coverage detected