Previous fix only works when there is a transpose copy. The mechanism should
Previous fix only works when there is a transpose copy. The mechanism should
work regardless of the existence of such copies. Also add some filtering for a special case where at loop entry a tensor is on the host, for which case the root instruction of the loop body should not use the moved-to-device version.
