Skip to content
GitLab
Projects Groups Snippets
  • /
  • 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 5,249
    • Issues 5,249
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 581
    • Merge requests 581
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #20374
Closed
Open
Issue created Sep 15, 2021 by Sylvain Henry@hsyl20Developer

Constant-folding lacking for `timesInt2#`

timesInt2# lacks constant folding. It's an issue when we try to inline ghc-bignum operations, e.g.:

--- "/builds/hsyl20/ghc/tmp/ghctest-sbdktbdc/test   spaces/testsuite/tests/lib/integer/integerConstantFolding.run/integerConstantFolding.stdout.normalised"	2021-09-13 09:32:38.597998758 +0000
+++ "/builds/hsyl20/ghc/tmp/ghctest-sbdktbdc/test   spaces/testsuite/tests/lib/integer/integerConstantFolding.run/integerConstantFolding.run.stdout.normalised"	2021-09-13 09:32:38.597998758 +0000
@@ -1,3 +1,16 @@
+Unfolded values found
+  = case GHC.Prim.timesInt2# 100005# 6832# of
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking