]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix ARM64 build
authorAustin Clements <austin@google.com>
Tue, 22 May 2018 15:35:03 +0000 (11:35 -0400)
committerAustin Clements <austin@google.com>
Tue, 22 May 2018 15:38:30 +0000 (15:38 +0000)
Write barrier unsafe-point analysis needs to flow through
OpARM64MOVWUload in c-shared mode.

Change-Id: I4f06f54d9e74a739a1b4fcb9ab0a1ae9b7b88a95
Reviewed-on: https://go-review.googlesource.com/114077
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/plive.go

index f42094a0f5c043c55881468e7ab66dc92958fd74..cb5eecf4307f3280bb43f17e2843bce2427d6fdb 100644 (file)
@@ -530,10 +530,11 @@ func (lv *Liveness) markUnsafePoints() {
                                        v = v.Args[0]
                                        continue
                                }
-                       case ssa.OpPPC64MOVWZload, ssa.Op386MOVLload:
+                       case ssa.Op386MOVLload, ssa.OpARM64MOVWUload, ssa.OpPPC64MOVWZload:
                                // Args[0] is the address of the write
                                // barrier control. Ignore Args[1],
                                // which is the mem operand.
+                               // TODO: Just ignore mem operands?
                                v = v.Args[0]
                                continue
                        }