aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-01-23 20:24:58 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-23 20:24:58 -0700
commit9d5a133f18f16108543cd54b2b37ee4e17f09cac (patch)
tree020e56cc0872c5d21617d84d5c0af43d999bf62c /src
parent2ab78937dd29fbc299ac434f962a5ff41002cc43 (diff)
downloadzig-9d5a133f18f16108543cd54b2b37ee4e17f09cac.tar.gz
zig-9d5a133f18f16108543cd54b2b37ee4e17f09cac.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/Liveness.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Liveness.zig b/src/Liveness.zig
index 6227da3ede..56b70be317 100644
--- a/src/Liveness.zig
+++ b/src/Liveness.zig
@@ -489,7 +489,7 @@ pub fn categorizeOperand(
for (args, 0..) |arg, i| {
if (arg == operand_ref) return matchOperandSmallIndex(l, inst, @as(OperandInt, @intCast(i + 1)), .write);
}
- return .none;
+ return .write;
}
var bt = l.iterateBigTomb(inst);
if (bt.feed()) {
@@ -504,7 +504,7 @@ pub fn categorizeOperand(
if (arg == operand_ref) return .write;
}
}
- return .none;
+ return .write;
},
.select => {
const pl_op = air_datas[@intFromEnum(inst)].pl_op;