Skip to content
Snippets Groups Projects
Commit adc3415f authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Ben Gamari
Browse files

WIP: Add likelyhood to alternatives from stg onwards

Summary:
Adds a Freq value to Stg/Cmm cases/switches/conditionals.

Currently only generates these values by checking alternatives for
bottom expressions.

They are passed along to the backend where they affect conditional generation
slightly.

As it stands runtime improvements seem to be less than expected. This might only be worth merging once we have more branch weights available.

Reviewers: hvr, goldfire, bgamari, simonmar, simonpj, erikd

Reviewed By: simonpj

Subscribers: simonpj, rwbarton, thomie, carter

GHC Trac Issues: #14672

Differential Revision: https://phabricator.haskell.org/D4327
parent abfe1048
No related merge requests found
Showing
with 508 additions and 209 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment