-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/compile: generate late-lowering static calls
This is testing for the limited case of zero or one SSA-able results. One regression is that the later expansion of "Dereference" into Move into argument slots thwarts the MOVE A -> B, MOVE B -> C replaced-by MOVE A -> B, MOVE A -> C optimization; the second move is written instead as a Dereference at the phase where the optimization occurs, and because the target of the dereference is not visible in the dereference, it's not possible to verify that A and B or A and C don't overlap in some peculiar way (and for results fed to args, they can). Regression is repaired in a later CL by changing when calls are expanded. Change-Id: Ia0f48a9d483d5a54a99657a24b12b25b8edde55f Reviewed-on: https://go-review.googlesource.com/c/go/+/242782 Trust: David Chase <[email protected]> Run-TryBot: David Chase <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Cherry Zhang <[email protected]>
- Loading branch information
Showing
3 changed files
with
87 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters