[Chapel Merge] Exempt field access from outside data check

Branch: refs/heads/main
Revision: 1b7de99
Author: stonea
Link: Unavailable
Log Message:

Merge pull request #20342 from stonea/gpu_tuple_in_called_func

Exempt field access from outside data check

A loop is not considered "gpuizable" if it calls a function where that function accesses an "outside" variable. This check previously considered any field access to be outside. This commit fixes that.
This should fix: #20293

[Reviewed by @e-kayrakli and @ShreyasKhandekar]

Modified Files:
A test/gpu/native/callBuildTupleFunc.chpl

A test/gpu/native/callBuildTupleFunc.good
M compiler/optimizations/gpuTransforms.cpp

Compare: https://github.com/chapel-lang/chapel/compare/562027019d96...1b7de991734d