1.0.43.42: Constant fold IFs before performing IF/IF conversion
authorPaul Khuong <pvk@pvk.ca>
Tue, 12 Oct 2010 04:41:16 +0000 (04:41 +0000)
committerPaul Khuong <pvk@pvk.ca>
Tue, 12 Oct 2010 04:41:16 +0000 (04:41 +0000)
commiteb7eab71a53ddcc9d72b4876c01f2f82bb686b9e
tree16dd7fa715d1318e58643fbed320cc24218a7396
parentfa37ab8800978c9dd39b587cb3cdeef6c9e9ded9
1.0.43.42: Constant fold IFs before performing IF/IF conversion

IF/IF-conversion is somewhat similar to "the trick": when a conditional
branches on an lvar that may be written to by multiple nodes, duplicate
the conditional after each of the writers.

We used to perform that before constant-folding IFs.  We now do the
reverse: it's always better to completely flush the branch away than to
duplicate it.
src/compiler/ir1opt.lisp
version.lisp-expr