mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
38f8cf7bee
The icmp instruction is often used in nil checks, so this instruction happens very frequently now that TinyGo automatically inserts nil checks everywhere. Escape analysis would conservatively mark such pointers as escaping, which they obviously don't. This commit improves escape analysis to allow icmp instructions.