Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 393
    • Issues 393
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !70

WIP: Extended Memory Optimisations

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Hans-Nikolai Viessmann requested to merge sbs/sac2c:bodo-emr into develop Oct 09, 2018
  • Overview 1
  • Commits 59
  • Changes 54

This MR adds the EMR related optimisations that effectively reduce the number of memory allocations by increase the pool of possible memory reuse candidates (previously allocated hunks that are no longer referenced) and extending the life-times of arrays. Additionally we are able to lift allocations out of the body of the inner-most loop.

Further additions:

  • extended runtime profiler to collect memory-related metrics
  • add option to disable the including of GNU #line CPP macros - these make debugging the C-code difficult
  • extended pre/post function injection within the phase manager - with this we can inject functions to alter the AST before/after an actual phase, this is particularly use when using -b <phase> (break) to view the AST.

Some things still need doing

  • add tests
  • cleanup code
  • documentation
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: bodo-emr