summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/RegAlloc/Graph
diff options
context:
space:
mode:
authorRichard Lupton <richard.lupton@gmail.com>2019-08-17 13:34:51 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-08-19 02:12:00 -0400
commitac79dfe9cb51f38e122af9a404d50aead8a9e8b0 (patch)
treeed4b2acdc3f5613460ee0cffbec4f71bc1df518e /compiler/nativeGen/RegAlloc/Graph
parent2a394246da84c17e1b5103bde320b8ca4ce1158a (diff)
downloadhaskell-ac79dfe9cb51f38e122af9a404d50aead8a9e8b0.tar.gz
Remove Bag fold specialisations (#16969)
Diffstat (limited to 'compiler/nativeGen/RegAlloc/Graph')
-rw-r--r--compiler/nativeGen/RegAlloc/Graph/Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/nativeGen/RegAlloc/Graph/Main.hs b/compiler/nativeGen/RegAlloc/Graph/Main.hs
index df97de1c62..e756068ca1 100644
--- a/compiler/nativeGen/RegAlloc/Graph/Main.hs
+++ b/compiler/nativeGen/RegAlloc/Graph/Main.hs
@@ -310,7 +310,7 @@ buildGraph code
-- Add the reg-reg conflicts to the graph.
let conflictBag = unionManyBags conflictList
let graph_conflict
- = foldrBag graphAddConflictSet Color.initGraph conflictBag
+ = foldr graphAddConflictSet Color.initGraph conflictBag
-- Add the coalescences edges to the graph.
let moveBag
@@ -318,7 +318,7 @@ buildGraph code
(unionManyBags moveList)
let graph_coalesce
- = foldrBag graphAddCoalesce graph_conflict moveBag
+ = foldr graphAddCoalesce graph_conflict moveBag
return graph_coalesce