Add maybeUpdateDataRegion() for efficient data handling

This commit introduces the maybeUpdateDataRegion() helper method,
allowing data to be added directly to the data region without generating
a datacopy instruction. This enables more efficient memory management in
certain scenarios by optimizing data placement.

Test: TH
Change-Id: I97146aa1a93626fd4c0537178d686dd2fa31d744
1 file changed