aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2016-09-12 13:47:55 -0700
committerKeith Randall <khr@golang.org>2016-09-12 22:41:03 +0000
commit6ca7c2055bd114c08426d3dbdee444b280b569b6 (patch)
treee1a6b9551ef3a50ed17db4fc44e0c1e9a60d9102 /src/runtime
parente42ae65a85079a9f39d0fb4837a78172ad898d84 (diff)
downloadgo-6ca7c2055bd114c08426d3dbdee444b280b569b6.tar.xz
cmd/compile: fix tuple-generating flag ops as clobbering flags
If an op generates a tuple, and part of that tuple is of flags type, then treat the op as clobbering flags. Normally this doesn't matter because we do: v1 = ADDS <int32, flags> v2 = Select0 v1 <int32> v3 = Select1 v1 <flags> And v3 will do the right clobbering of flags. But in the rare cases where we issue a tuple-with-flag op and the flag portion is dead, then we never issue a Select1. But v1 still clobbers flags, so we need to respect that. Fixes builder failure in CL 28950. Change-Id: I589089fd81aaeaaa9750bb8d85e7b10199aaa002 Reviewed-on: https://go-review.googlesource.com/29083 Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions