devitocodes / devito

DSL and compiler framework for automated finite-differences and stencil computation
http://www.devitoproject.org
MIT License
537 stars 221 forks source link

compiler: Generate less integer arithmetic #2301

Closed FabioLuporini closed 5 months ago

FabioLuporini commented 5 months ago

tiny PR that shifts the stencil loops by as much as needed so that we can index e.g. w[i0] (i0=0)instead of w[i0 + 2] (i0 = -2)

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0ccf5fd) 86.68% compared to head (ce8613a) 86.70%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2301 +/- ## ========================================== + Coverage 86.68% 86.70% +0.02% ========================================== Files 229 229 Lines 42928 42942 +14 Branches 7958 7957 -1 ========================================== + Hits 37214 37235 +21 + Misses 5029 5023 -6 + Partials 685 684 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.