summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2018-01-22 15:03:02 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2018-01-22 15:05:39 +0000
commit730f382795217ff5dadb985b6a7e778d59bc6199 (patch)
tree9b54eaa0c35e4829e71899966bcc7650dae6eef2
parentf592436eaba59b5c7383e070b331491a27483b42 (diff)
downloadhaskell-wip/float-join-points.tar.gz
Tiny refactor (swap order of args to (&&))wip/float-join-points
-rw-r--r--compiler/simplCore/SetLevels.hs4
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"