1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:34:39 -07:00

docs: update compile/README.md to reflect dead code elimination changes

This commit is contained in:
func25 2024-06-23 12:17:19 +07:00
parent e8ee1dc4f9
commit 76493ce8b0

View File

@ -63,7 +63,6 @@ Unified IR is also involved in import/export of packages and inlining.
### 4. Middle end
* `cmd/compile/internal/deadcode` (dead code elimination)
* `cmd/compile/internal/inline` (function call inlining)
* `cmd/compile/internal/devirtualize` (devirtualization of known interface method calls)
* `cmd/compile/internal/escape` (escape analysis)
@ -72,6 +71,8 @@ Several optimization passes are performed on the IR representation:
dead code elimination, (early) devirtualization, function call
inlining, and escape analysis.
The early dead code elimination pass is integrated into the unified IR writer phase.
### 5. Walk
* `cmd/compile/internal/walk` (order of evaluation, desugaring)