Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,837
    • Issues 4,837
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 450
    • Merge requests 450
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Merge requests
  • !7073

Closed
Created Nov 26, 2021 by Gergő Érdi@cactusContributor
  • Report abuse
Report abuse

Add `Opt_ConstantFolding` to turn on constant folding (#20500)

  • Overview 12
  • Commits 3
  • Pipelines 7
  • Changes 12

Finish what we started in !6999 (closed): remove optLevel completely from DynFlags, and only use it while processing CLI options. The Core-to-Core optimization pipeline always has the same shape now, with individual passes included or not based on individual optimization flags. One new optimization flag -fconstant-folding is needed to fully restore the previous -O1 behaviour.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: pr/cactus/issue-20500