Improve control flow optimisation algorithm
authorJan Stolarek <jan.stolarek@p.lodz.pl>
Fri, 18 Oct 2013 15:43:55 +0000 (17:43 +0200)
committerJan Stolarek <jan.stolarek@p.lodz.pl>
Fri, 18 Oct 2013 15:54:18 +0000 (17:54 +0200)
commit057bef6ef759bc0819d4ced291da92aa3feb445a
treeef27852e5c0fb0fb16ce03f9d3136043929fad49
parentb0545d81d2c838629498e84e144010870eaf2dfc
Improve control flow optimisation algorithm

Fixes #8456. Previous version of control flow optimisations
did not update the list of block predecessors, leading to
unnecessary duplication of blocks in some cases. See Trac
and comments in the code for more details.
compiler/cmm/CmmContFlowOpt.hs