GetResourcesFromInstruction
return a complete list of resources used by instructions in a while loop. This will make async done
and while ops have similar priority (in terms of occupying resource types) and avoid delaying the while loops only because they cross the overlap limit (even though they have a higher async depth).
#81389