30 karma · joined Mar 6, 2017 (9y ago) · 5 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 9y ago · link · parent
No. At the moment it records the AST in the object file, because the inliner works at the Go AST level. In the future it may instead record the SSA representation (which would obviously give better cost estimates; the current heuristics are really extremely simple).
"FWIW: Writing out the info is usually not the hard part, actually, and is unrelated to the DAG-ness of the packages."
The DAG-ness means it's always available when compiling the call site, even if it's a cross-package call. It means you don't have to do it at link time.
comment 9y ago · link · parent
comment 9y ago · link · parent