Commit 1b1d0a9a authored by Ilya Tocar's avatar Ilya Tocar Committed by David Chase

[dev.ssa] cmd/compile: Use movups for xmm->xmm mov

Movups is 1 byte smaller than movapd that we currently use.

Change-Id: I22f771f066529352722a28543535ec43497cb9c5
Reviewed-on: https://go-review.googlesource.com/19938Reviewed-by: default avatarDavid Chase <drchase@google.com>
parent 8107b001
......@@ -4999,7 +4999,9 @@ func moveByType(t ssa.Type) int {
if t.IsFloat() {
// Moving the whole sse2 register is faster
// than moving just the correct low portion of it.
return x86.AMOVAPD
// There is no xmm->xmm move with 1 byte opcode,
// so use movups, which has 2 byte opcode.
return x86.AMOVUPS
} else {
switch t.Size() {
case 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment