| author | |
| committer | |
| log | 6ae8fe193bd5397b9fceea98ba684d9d870286cf |
| tree | e2917f745678f883d26c75bcbb546af2a9787cde |
| parent | 737ef3e81b4a417b3f81d54a419644fc8fb6b964 |
2 files changed, 2 insertions(+), 6 deletions(-)
src/Liveness.zig+1-3| ... | ... | @@ -796,9 +796,7 @@ const ExtraTombs = struct { |
| 796 | 796 | assert(this_bit_index < 32); // TODO mechanism for when there are greater than 32 operands |
| 797 | 797 | et.bit_index += 1; |
| 798 | 798 | const gpa = et.analysis.gpa; |
| 799 | const op_int = @enumToInt(op_ref); | |
| 800 | if (op_int < Air.Inst.Ref.typed_value_map.len) return; | |
| 801 | const op_index: Air.Inst.Index = op_int - @intCast(u32, Air.Inst.Ref.typed_value_map.len); | |
| 799 | const op_index = Air.refToIndex(op_ref) orelse return; | |
| 802 | 800 | const prev = try et.analysis.table.fetchPut(gpa, op_index, {}); |
| 803 | 801 | if (prev == null) { |
| 804 | 802 | // Death. |
src/arch/x86_64/CodeGen.zig+1-3| ... | ... | @@ -280,9 +280,7 @@ const BigTomb = struct { |
| 280 | 280 | const this_bit_index = bt.bit_index; |
| 281 | 281 | bt.bit_index += 1; |
| 282 | 282 | |
| 283 | const op_int = @enumToInt(op_ref); | |
| 284 | if (op_int < Air.Inst.Ref.typed_value_map.len) return; | |
| 285 | const op_index = @intCast(Air.Inst.Index, op_int - Air.Inst.Ref.typed_value_map.len); | |
| 283 | const op_index = Air.refToIndex(op_ref) orelse return; | |
| 286 | 284 | |
| 287 | 285 | if (this_bit_index < Liveness.bpi - 1) { |
| 288 | 286 | const dies = @truncate(u1, bt.tomb_bits >> @intCast(Liveness.OperandInt, this_bit_index)) != 0; |