[Chapel Merge] Add computation to calculate index to operate on i

Branch: refs/heads/main
Revision: 3cac432
Author: stonea
Log Message:

Merge pull request #18185 from stonea/perform_index_computation

Add computation to calculate index to operate on in extracted GPU kernel.

Basically just add AST to do: fakeIndex = blockIdx.x * blockDim.x + threadIdx.x.

[Reviewed by @e-kayrakli]

Modified Files:
M compiler/optimizations/deadCodeElimination.cpp

Compare: https://github.com/chapel-lang/chapel/compare/10a7e9d60dbd...3cac4326bc86