Occasionally instructions are between the last instruction in a region, and the following instruction as identified by the Candidate. This adds an extra check right before splitting a candidate that excludes the region from being split/checked for outlining to remove errors.
Tests Changed:
Tranforms/IROutliner/outlining-extra-bitcasts.ll
Move EndInst above and use it here?
Also, this could use a comment.