authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-23 20:24:58-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-23 20:24:58-07:00
log9d5a133f18f16108543cd54b2b37ee4e17f09cac
tree020e56cc0872c5d21617d84d5c0af43d999bf62c
parent2ab78937dd29fbc299ac434f962a5ff41002cc43

Revert "Don't assume a write if an operand is not in function parameters"

This reverts commit 2ab78937dd29fbc299ac434f962a5ff41002cc43. Premature merge - apologies for the disruption. Reopens #15685 Reopens #17580

1 files changed, 2 insertions(+), 2 deletions(-)

src/Liveness.zig+2-2
......@@ -489,7 +489,7 @@ pub fn categorizeOperand(
489489 for (args, 0..) |arg, i| {
490490 if (arg == operand_ref) return matchOperandSmallIndex(l, inst, @as(OperandInt, @intCast(i + 1)), .write);
491491 }
492 return .none;
492 return .write;
493493 }
494494 var bt = l.iterateBigTomb(inst);
495495 if (bt.feed()) {
......@@ -504,7 +504,7 @@ pub fn categorizeOperand(
504504 if (arg == operand_ref) return .write;
505505 }
506506 }
507 return .none;
507 return .write;
508508 },
509509 .select => {
510510 const pl_op = air_datas[@intFromEnum(inst)].pl_op;