File tree 2 files changed +21
-2
lines changed
src/cmd/compile/internal/ssa
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,8 @@ func dse(f *Func) {
52
52
if v .Op == OpLocalAddr {
53
53
if _ , ok := localAddrs [v .Aux ]; ! ok {
54
54
localAddrs [v .Aux ] = v
55
- } else {
56
- continue
57
55
}
56
+ continue
58
57
}
59
58
if v .Op == OpInlMark {
60
59
// Not really a use of the memory. See #67957.
Original file line number Diff line number Diff line change
1
+ // asmcheck -gcflags=-d=ssa/check/on
2
+
3
+ // Copyright 2024 The Go Authors. All rights reserved.
4
+ // Use of this source code is governed by a BSD-style
5
+ // license that can be found in the LICENSE file.
6
+
7
+ package codegen
8
+
9
+ // amd64:-"MOVQ"
10
+ func foo (v uint64 ) (b [8 ]byte ) {
11
+ b [0 ] = byte (v )
12
+ b [1 ] = byte (v >> 8 )
13
+ b [2 ] = byte (v >> 16 )
14
+ b [3 ] = byte (v >> 24 )
15
+ b [4 ] = byte (v >> 32 )
16
+ b [5 ] = byte (v >> 40 )
17
+ b [6 ] = byte (v >> 48 )
18
+ b [7 ] = byte (v >> 56 )
19
+ return b
20
+ }
You can’t perform that action at this time.
0 commit comments