]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: in poset, move all constants to the first DAG
authorGiovanni Bajo <rasky@develer.com>
Thu, 19 Sep 2019 20:39:37 +0000 (22:39 +0200)
committerGiovanni Bajo <rasky@develer.com>
Thu, 26 Sep 2019 21:24:24 +0000 (21:24 +0000)
commit490646e476aabf0cc146d2b203ab7a09e1d4847d
treedab181fb8625e709370da29ce102d5dc3eacc733
parent4faf8a8dc44555c4fdbe4fb108f42144e58ae6b1
cmd/compile: in poset, move all constants to the first DAG

In poset, all constants are always related to each other, so they
are part of the same DAG. Currently, it can be any of the DAGs in
the forest. Since we're about to start visiting that DAG for the
task of calculating bounds, make sure that it's conventionally
always the first, so that we don't need to search for it.

Change-Id: Ia7ca312b52336b4731b070d45cf0d768a0d6aeeb
Reviewed-on: https://go-review.googlesource.com/c/go/+/196599
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/poset.go