From 035fcc0c4d0354adb1a8c837035f4ef3426bb5ed Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 5 Jan 2016 16:30:08 -0800 Subject: [PATCH] [dev.ssa] cmd/compile: add some more TODOs Change-Id: If8b6b85d2165d6222b36f101adb95b7ee40371c1 Reviewed-on: https://go-review.googlesource.com/18300 Reviewed-by: David Chase --- src/cmd/compile/internal/ssa/TODO | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cmd/compile/internal/ssa/TODO b/src/cmd/compile/internal/ssa/TODO index 73d91fefd7..d4904e1dcf 100644 --- a/src/cmd/compile/internal/ssa/TODO +++ b/src/cmd/compile/internal/ssa/TODO @@ -26,6 +26,15 @@ Optimizations (better compiled code) CMP AX, $0 JEQ ... - Use better write barrier calls +- If there are a lot of MOVQ $0, ..., then load + 0 into a register and use the register as the source instead. +- Allow structs (and arrays of length 1?) to be SSAable. +- Figure out how to make PARAMOUT variables ssa-able. + They need to get spilled automatically at end-of-function somehow. +- If strings are being passed around without being interpreted (ptr + and len feilds being accessed) pass them in xmm registers? + Same for interfaces? +- boolean logic: movb/xorb$1/testb/jeq -> movb/testb/jne Optimizations (better compiler) ------------------------------- -- 2.48.1