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 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • 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
  • !229

Fix unnecessarily high complexity leading to slow compile times in DataFlowMask.c

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Michiel Verloop requested to merge refactor/dataflowmask into develop May 30, 2023
  • Overview 24
  • Commits 18
  • Changes 30

This merge request makes a lot of changes for DataFlowMask:

  • Changes several functions with O(n^2) performance to O(n) where n is the number of vardecls and arguments.
    • I had a real-world use case with n = 60k, which didn't compile in 4 hours time. Now it compiles in 12 minutes.
    • This performance issue was around since before my birth :)
  • Refactors most functions to have less code duplication.
  • Solves a bug where a mask generated by DFMgenMaskSet gets extended with zeroes instead of ones after the mask base expands.
  • GREATLY improves documentation, which was pretty much non-existent.
  • Adds DFMsetMaskXor/DFMgenMaskXor functions to act as the symmetric difference set operation.
  • Partially co-authored by @sbs, thanks for the help!
Edited Jun 03, 2023 by Michiel Verloop
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: refactor/dataflowmask