Fix and simplify computation of liveins for new block.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I have not fully root caused it, but if I apply D88537 with splitAt as-is then I get code generation errors due to missing liveins.
Since the code sequence in splitAt is almost the same as that used by computeAndAddLiveIns, it seems logic to use that instead?
Looking at the code again for the moment, I think the problem is that SplitPoint (after increment) is missed in the stepBackward application.
i.e. the iteration needs to be inclusive of the whole range, not exclusive of the end point.
Revise the fix to address the underlying problem in the original code.
I see now my previous fix was incorrect; however, was addressing the verifier
errors I was seeing because it would generate correct liveins on a per-block
basis, but not for chains of blocks (I am not sure if the verifier checks these?).