Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Glasgow Haskell Compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
a3c13fdb
Commit
a3c13fdb
authored
Oct 20, 2011
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some legacy code
__GLASGOW_HASKELL__ >= 612 is now always true
parent
e732d9d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
compiler/cmm/CmmProcPoint.hs
compiler/cmm/CmmProcPoint.hs
+0
-11
No files found.
compiler/cmm/CmmProcPoint.hs
View file @
a3c13fdb
...
...
@@ -282,19 +282,8 @@ addProcPointProtocols callPPs procPoints g =
let
block
=
mapLookup
id
(
toBlockMap
g
)
`
orElse
`
panic
"branch out of graph"
in
case
blockToNodeList
block
of
-- MS: There is an ugly bug in ghc-6.10, which rejects following valid code.
-- After trying several tricks, the NOINLINE on getItOut worked. Uffff.
#
if
__GLASGOW_HASKELL__
>=
612
(
_
,
[]
,
JustC
(
CmmBranch
pee
))
|
setMember
pee
procPoints
->
Just
pee
_
->
Nothing
#
else
(
_
,
[]
,
exit
)
|
CmmBranch
pee
<-
getItOut
exit
,
setMember
pee
procPoints
->
Just
pee
_
->
Nothing
where
{-# NOINLINE getItOut #-}
getItOut
::
MaybeC
C
a
->
a
getItOut
(
JustC
a
)
=
a
#
endif
-- | For now, following a suggestion by Ben Lippmeier, we pass all
-- live variables as arguments, hoping that a clever register
...
...
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