]> gitweb.factorcode.org Git - factor.git/commit
compiler.cfg.ssa.destruction.coalescing: refactor and maybe a fix for #1308
authorBjörn Lindqvist <bjourne@gmail.com>
Tue, 28 Jul 2015 21:18:01 +0000 (23:18 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 29 Jul 2015 00:58:29 +0000 (17:58 -0700)
commita8c0a25d87f802654071bb0f559bd5db143b3137
treec30cd1367200e5cb0be57e401ea0ed84835e78c9
parentb544c1b352b5d335710c62e61557f12870f836f7
compiler.cfg.ssa.destruction.coalescing: refactor and maybe a fix for #1308

the eliminatable-copy? word is the fix. the previous code only checked
that the registers had the same register class, but you also need to
check that they dont have the same representation size. because a copy
from double-rep -> double-2-rep is not eliminatable
basis/compiler/cfg/ssa/destruction/coalescing/coalescing-docs.factor
basis/compiler/cfg/ssa/destruction/coalescing/coalescing-tests.factor
basis/compiler/cfg/ssa/destruction/coalescing/coalescing.factor