]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: cleanup fp conversions in ssa.go
authorDavid Chase <drchase@google.com>
Tue, 1 Sep 2015 21:09:00 +0000 (17:09 -0400)
committerDavid Chase <drchase@google.com>
Sat, 5 Sep 2015 02:39:32 +0000 (02:39 +0000)
commitd052bbd051a76dcfcbc0a0f471072166a9d07d20
tree1197d67e7b7848e2b99e962c0076980d06ad4687
parenta3f72956f1f8fde81930c0f8261cfa19bc114345
[dev.ssa] cmd/compile: cleanup fp conversions in ssa.go

Change to table-driven instead of branchy code; leads to
net reduction in lines, easier to understand what happens,
easier to modify code if we want option to exclude generation
of branchy cases.

Doesn't appear to scale for 8x8 case of integer types.

Change-Id: Ib40104b149d30bb329c5782f6cac45c75743e768
Reviewed-on: https://go-review.googlesource.com/14163
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go