diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2018-01-22 15:03:02 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2018-01-22 15:05:39 +0000 |
commit | 730f382795217ff5dadb985b6a7e778d59bc6199 (patch) | |
tree | 9b54eaa0c35e4829e71899966bcc7650dae6eef2 /compiler/simplCore/SetLevels.hs | |
parent | f592436eaba59b5c7383e070b331491a27483b42 (diff) | |
download | haskell-wip/float-join-points.tar.gz |
Tiny refactor (swap order of args to (&&))wip/float-join-points
Diffstat (limited to 'compiler/simplCore/SetLevels.hs')
-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" |