aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml
diff options
context:
space:
mode:
authorLynn Boger <laboger@linux.vnet.ibm.com>2017-04-25 17:13:52 -0400
committerLynn Boger <laboger@linux.vnet.ibm.com>2017-04-26 17:39:33 +0000
commit6910e1085b191d6b202a93fafb019ff95dcc6f11 (patch)
tree956e5cc03c18da735efda6179a87afc57d429848 /src/encoding/xml
parent386765afdf6afd320ae949d5721d6776f6047d35 (diff)
downloadgo-6910e1085b191d6b202a93fafb019ff95dcc6f11.tar.xz
cmd/internal/obj/ppc64: use MOVDU to update stack reg for leaf functions where possible
When the stack register is decremented to acquire stack space at the beginning of a function, a MOVDU should be used so it is done atomically, unless the size of the stack frame is too large for that instruction. The code to determine whether to use MOVDU or MOVD was checking if the function was a leaf and always generating MOVD when it was. The choice of MOVD vs. MOVDU should only depend on the stack frame size. This fixes that problem. Change-Id: I0e49c79036f1e8f7584179e1442b938fc6da085f Reviewed-on: https://go-review.googlesource.com/41813 Reviewed-by: Michael Munday <munday@ca.ibm.com>
Diffstat (limited to 'src/encoding/xml')
0 files changed, 0 insertions, 0 deletions