[Chapel Merge] Handle two issues that came up after some AVE improvements

Branch: refs/heads/main
Revision: c56bdec96cbe4bb9f4d855d05b32b9603d146439
Author: e-kayrakli
Link: Handle two issues that came up after some AVE improvements by e-kayrakli · Pull Request #26629 · chapel-lang/chapel · GitHub
Log Message:
Handle two issues that came up after some AVE improvements (#26629)

This PR handles two things:

[Reviewed by @benharsh]

Test:

  • local
  • gasnet

Compare: Comparing 0ad286b7577e34dd62deaf69ebf827f1430a562e...fd5521cb647aeba0abad05802aeb426ac736de1a · chapel-lang/chapel · GitHub

Diff:
M compiler/optimizations/arrayViewElision.cpp
M modules/internal/ChapelArrayViewElision.chpl
A test/optimizations/arrayViewElision/localToDistributed.comm-none.good
M test/optimizations/arrayViewElision/localToDistributed.good
https://github.com/chapel-lang/chapel/pull/26629.diff