In some cases natural use of abstraction in avo programs can lead to redundant move instructions, specifically self-moves such as MOVQ AX, AX. This does not produce incorrect code but it is incorrect and inelegant. This diff introduces a PruneSelfMoves pass that removes such unnecessary instructions. Closes #76
6 lines
146 B
Go
6 lines
146 B
Go
// Code generated by command: go run asm.go -out issue76.s -stubs stub.go. DO NOT EDIT.
|
|
|
|
package issue76
|
|
|
|
func Issue76(x uint64, y uint64) uint64
|