llvm-dcpu16/llvm-dcpu16 — pull request #175 by CJKay (2012-05-16 22:51:41+00:00)
Title: IF* peephole optimisations

Some optimisations for AND+IFE 0 cases.
AND+IFE 0 -> IFB
AND+IFN 0 -> IFC

How effective they are I don't know. The optimisations only kick in when it's ensured that the result of the AND is not used past the IFE, because the value is usually put on the stack before jumping and can cause some serious code screwups when landing on a branch due to it pulling the value back off the stack (and so if it isn't there...).