• Simon Marlow's avatar
    Improve common-block elimination · 99293a48
    Simon Marlow authored
    We need to compare middle nodes and expressions modulo the BlockId
    mapping too, because there are references to BlockIds in CmmStackSlot
    and CmmBlock.  This lets us catch more common blocks - in particular
    we can share the heap-check fail code between multiple case
    alternatives, which is most cool.
CmmCommonBlockElim.hs 8.11 KB