Now, I am trying to improve the function dupRetToEnableTailCallOpts() to do more generate optimization not only for tail call.
When I do this work, I find the old code can be simplified to define the element type of TailCalls as BasicBlock not CallInst.
Can this be a range based for?