Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Glasgow Haskell Compiler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex Biehl
Glasgow Haskell Compiler
Commits
1eb1b36b
Commit
1eb1b36b
authored
6 years ago
by
Alex Biehl
Browse files
Options
Downloads
Patches
Plain Diff
Push heap checks into case alternatives if possible for comparisons.
parent
015f6ecc
Branches
master
No related tags found
No related merge requests found
Pipeline
#434
failed
6 years ago
Stage: lint
Stage: build
Stage: full-build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/codeGen/StgCmmExpr.hs
+1
-1
1 addition, 1 deletion
compiler/codeGen/StgCmmExpr.hs
with
1 addition
and
1 deletion
compiler/codeGen/StgCmmExpr.hs
+
1
−
1
View file @
1eb1b36b
...
@@ -502,7 +502,7 @@ cgCase scrut bndr alt_type alts
...
@@ -502,7 +502,7 @@ cgCase scrut bndr alt_type alts
;
let
ret_bndrs
=
chooseReturnBndrs
bndr
alt_type
alts
;
let
ret_bndrs
=
chooseReturnBndrs
bndr
alt_type
alts
alt_regs
=
map
(
idToReg
dflags
)
ret_bndrs
alt_regs
=
map
(
idToReg
dflags
)
ret_bndrs
;
simple_scrut
<-
isSimpleScrut
scrut
alt_type
;
simple_scrut
<-
isSimpleScrut
scrut
alt_type
;
let
do_gc
|
is_cmp_op
scrut
=
False
-- See Note [GC for conditionals]
;
let
do_gc
--
| is_cmp_op scrut = False -- See Note [GC for conditionals]
|
not
simple_scrut
=
True
|
not
simple_scrut
=
True
|
isSingleton
alts
=
False
|
isSingleton
alts
=
False
|
up_hp_usg
>
0
=
False
|
up_hp_usg
>
0
=
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment