stage2 register_manager: Add unit tests for tryAllocReg and allocReg
This commit is contained in:
committed by
Andrew Kelley
parent
4efbcad26d
commit
228a1ce3e8
@@ -929,7 +929,7 @@ fn Function(comptime arch: std.Target.Cpu.Arch) type {
|
||||
return MCValue{ .stack_offset = stack_offset };
|
||||
}
|
||||
|
||||
pub fn spillInstruction(self: *Self, src: usize, reg: Register, inst: *ir.Inst) !void {
|
||||
pub fn spillInstruction(self: *Self, src: LazySrcLoc, reg: Register, inst: *ir.Inst) !void {
|
||||
const stack_mcv = try self.allocRegOrMem(inst, false);
|
||||
const reg_mcv = self.getResolvedInstValue(inst);
|
||||
assert(reg == toCanonicalReg(reg_mcv.register));
|
||||
|
||||
Reference in New Issue
Block a user