Skip to content

Clean-up modcc output#2496

Open
thorstenhater wants to merge 10 commits intoarbor-sim:masterfrom
thorstenhater:perf/symge
Open

Clean-up modcc output#2496
thorstenhater wants to merge 10 commits intoarbor-sim:masterfrom
thorstenhater:perf/symge

Conversation

@thorstenhater
Copy link
Copy Markdown
Contributor

@thorstenhater thorstenhater commented Mar 2, 2026

  1. add a series of algebraic simplifications to NMODL output
  • -(-a) == a contraction
  • -(a - b) == b - a
  • ...
  1. add detection and emission of fused-mul-add operations
  2. handle all SIMD constraint from Arbor in NMODL
  3. replace more << output with fmt for cleaner reading

These can yield faster code, but doesn't in my local benchmarking, likely because the
C++ compiler is smart enough to spot these. However, it makes the output cleaner and
might help the odd compiler.

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