X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FsimplCore%2FOccurAnal.lhs;h=5824874b58179d34a16c6615d40817d66cadbb53;hp=53a89d58972960fdfb7975a25f3b71cdc61fd84d;hb=6a944ae7fe1e8e2e456c68717188463263f8978f;hpb=c93e8323ab49dd369e8b5f04027462a6fc1b8249 diff --git a/compiler/simplCore/OccurAnal.lhs b/compiler/simplCore/OccurAnal.lhs index 53a89d5..5824874 100644 --- a/compiler/simplCore/OccurAnal.lhs +++ b/compiler/simplCore/OccurAnal.lhs @@ -559,8 +559,9 @@ reOrderCycle depth (bind : binds) pairs | isOneOcc (idOccInfo bndr) = 2 -- Likely to be inlined - | canUnfold (idUnfolding bndr) = 1 - -- the Id has some kind of unfolding + | canUnfold (realIdUnfolding bndr) = 1 + -- The Id has some kind of unfolding + -- Ignore loop-breaker-ness here because that is what we are setting! | otherwise = 0