Enable (type-directed) constant folding for LOGTEST on x86oids and PPC
authorPaul Khuong <pvk@pvk.ca>
Mon, 20 May 2013 16:19:27 +0000 (12:19 -0400)
committerPaul Khuong <pvk@pvk.ca>
Tue, 21 May 2013 02:17:23 +0000 (22:17 -0400)
commitf21e0f5b908263715ea0d867edb64ceba5a3d668
tree3ddfc28e63ec29347f1ce3a97fb6b68f9e502dc5
parent0d8a5fab0a83b5d8b92870dba57dc7b3ebcc89b2
Enable (type-directed) constant folding for LOGTEST on x86oids and PPC

 * COMBINATION-IMPLEMENTATION-STYLE can return :maybe. Like :default,
   it enables transforms, but transforms can call C-I-S themselves to
   selectively disable rewrites.

 * Implement type-directed constant folding for LOGTEST. !x86oids/PPC
   platforms get that for free via inlining.

 * Use :maybe to enable all LOGTEST transforms except inlining.
src/compiler/ir1opt.lisp
src/compiler/ppc/vm.lisp
src/compiler/srctran.lisp
src/compiler/x86-64/vm.lisp
src/compiler/x86/vm.lisp
tests/compiler.pure.lisp