[dev.ssa] cmd/compile: Eval append args after growslice
For appending large types, we want to evaluate the values being appended after the growslice call, not before. Evaluating them before leads to phi operations on large types which confuses the lowering pass. The order pass has already removed any side-effects from the values being appended, so it doesn't matter if we do this last eval before or after the growslice call. This change fixes a bunch (but not all) of our failed lowerings. Change-Id: I7c697d4d5275d71b7ef4677b830fd86c52ba03a4 Reviewed-on: https://go-review.googlesource.com/15430Reviewed-by:David Chase <drchase@google.com> Run-TryBot: David Chase <drchase@google.com>
Showing
Please register or sign in to comment