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(...@@ -489,7 +489,7 @@ pub fn categorizeOperand(
489 for (args, 0..) |arg, i| {489 for (args, 0..) |arg, i| {
490 if (arg == operand_ref) return matchOperandSmallIndex(l, inst, @as(OperandInt, @intCast(i + 1)), .write);490 if (arg == operand_ref) return matchOperandSmallIndex(l, inst, @as(OperandInt, @intCast(i + 1)), .write);
491 }491 }
492 return .none;492 return .write;
493 }493 }
494 var bt = l.iterateBigTomb(inst);494 var bt = l.iterateBigTomb(inst);
495 if (bt.feed()) {495 if (bt.feed()) {
...@@ -504,7 +504,7 @@ pub fn categorizeOperand(...@@ -504,7 +504,7 @@ pub fn categorizeOperand(
504 if (arg == operand_ref) return .write;504 if (arg == operand_ref) return .write;
505 }505 }
506 }506 }
507 return .none;507 return .write;
508 },508 },
509 .select => {509 .select => {
510 const pl_op = air_datas[@intFromEnum(inst)].pl_op;510 const pl_op = air_datas[@intFromEnum(inst)].pl_op;