[chapel-lang/chapel] Fix a bug with automatic local access

Branch: refs/heads/master
Revision: ccd9602
Author: e-kayrakli
Log Message:

Merge pull request #16243 from e-kayrakli/localAccess-check-fix

Fix a bug with automatic local access

Fixes the dynamic check for automatic local access where I was wrongly assuming
that == on domains would check the equality of their distributions, too.

This causes issues when you have a forall that runs over the domain of an array
and the loop index is used to access another array that has the some index,
distribution type, but an unaligned distribution (through weird boundingBox

Obvious and trivial, not reviewed


  • [x] standard
  • [x] gasnet

Modified Files:
A test/optimizations/autoLocalAccess/unalignedSameDist.chpl
A test/optimizations/autoLocalAccess/unalignedSameDist.good
A test/optimizations/autoLocalAccess/unalignedSameDist.numlocales
M modules/internal/ChapelAutoLocalAccess.chpl

Compare: https://github.com/chapel-lang/chapel/compare/ef7ce7e1c638...ccd9602361f4