Logo
Explore Help
Register Sign In
code/avo
1
0
Fork 0
You've already forked avo
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
39eaafea2535af00233b8b31d196e2707bb5e1ca
avo/tests/fixedbugs/issue76/doc.go

5 lines
172 B
Go
Raw Normal View History

pass: add PruneSelfMoves cleanup pass (#80) 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
2019-04-14 14:26:28 -07:00
// Package issue76 deliberately produces redundant MOV instructions.
//
// The intent is to confirm redundant self-move instructions are correctly removed.
package issue76
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 414ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API