authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-23 16:39:28-08:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-12-23 16:39:28-08:00
log4c119866507b244dc0658b5cb43e20295f1888d7
tree1d76872b005e5fb69594fc2d6434ce3e2e057460
parent35fe088e0e341d06d97f1ac0f799b875c71f242a
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

MIR: remove unnecessary TODO comment

it wouldn't save any bytes in the MIR, and we can just check the range of the value when lowering the MIR to machine code.

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

src/arch/x86_64/Mir.zig-1
...@@ -293,7 +293,6 @@ pub const Inst = struct {...@@ -293,7 +293,6 @@ pub const Inst = struct {
293 /// Another instruction.293 /// Another instruction.
294 inst: Index,294 inst: Index,
295 /// A 32-bit immediate value.295 /// A 32-bit immediate value.
296 /// TODO we should add support for 16- and 8-bit immediate values.
297 imm: i32,296 imm: i32,
298 /// An extern function.297 /// An extern function.
299 /// Index into the linker's string table.298 /// Index into the linker's string table.