Let's make the two tests only diff in the invocation.
Prevent infinite recursion when processing instructions when finding tensor data flow sources.
When we look for dataset tensor sources, we recurse up to the original defining instruction. However, there's a possibility that instructions have mutually recursive definitions due to the phi instruction. Let's prevent against that.
Sorry for the large update.