Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
7dc82d64
Commit
7dc82d64
authored
Nov 27, 2017
by
Ben Gamari
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nativeGen: Use foldl' instead of foldl
parent
55e621c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
compiler/nativeGen/AsmCodeGen.hs
compiler/nativeGen/AsmCodeGen.hs
+1
-1
No files found.
compiler/nativeGen/AsmCodeGen.hs
View file @
7dc82d64
...
...
@@ -972,7 +972,7 @@ build_mapping ncgImpl (CmmProc info lbl live (ListGraph (head:blocks)))
has_info
l
=
mapMember
l
info
-- build a mapping from BlockId to JumpDest for shorting branches
mapping
=
foldl
add
emptyUFM
shortcut_blocks
mapping
=
foldl
'
add
emptyUFM
shortcut_blocks
add
ufm
(
id
,
dest
)
=
addToUFM
ufm
id
dest
apply_mapping
::
NcgImpl
statics
instr
jumpDest
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment