Skip to content

Cleanup flags#554

Merged
tomsmeding merged 3 commits into
AccelerateHS:masterfrom
tomsmeding:cleanup-flags
Aug 29, 2025
Merged

Cleanup flags#554
tomsmeding merged 3 commits into
AccelerateHS:masterfrom
tomsmeding:cleanup-flags

Conversation

@tomsmeding
Copy link
Copy Markdown
Member

@tomsmeding tomsmeding commented May 27, 2025

Description
The cabal flags list and the +ACC flags list show signs of a legacy codebase. Specifically, there were some documented (and some undocumented) flags that were completely unused in both accelerate and accelerate-llvm. (Even stronger: they seem to never have been used.)
This PR removes them.

How has this been tested?
I tested some of the options with index in the list higher than the ones I removed; they still work.

Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist
Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

* Removed unused options:
    -fsimplify, -fflush_cache, -funfolding-use-threshold, -fmax-simplifier-iterations
* Added some comments warning future maintainers of the complexity of
  this code
@tomsmeding tomsmeding merged commit 199c144 into AccelerateHS:master Aug 29, 2025
34 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant