diff options
Diffstat (limited to 'compiler/simplCore')
-rw-r--r-- | compiler/simplCore/SetLevels.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/simplCore/SetLevels.hs b/compiler/simplCore/SetLevels.hs index f0c9063e2a..946a41a99e 100644 --- a/compiler/simplCore/SetLevels.hs +++ b/compiler/simplCore/SetLevels.hs @@ -1166,8 +1166,8 @@ profitableFloat env dest_lvl (bndr:_) = True | otherwise - = not (isJoinId bndr) - && not (floatTopLvlOnly env) + = not (floatTopLvlOnly env) + && not (isJoinId bndr) && (dest_lvl `ltMajLvl` le_ctxt_lvl env) profitableFloat _ _ [] = panic "profitableFloat" |