This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] start and end parameters for fixupIsDeadOrKill may exist in different block before RA
ClosedPublic

Authored by shchenz on Jul 7 2020, 8:03 PM.

Details

Summary

In fixupIsDeadOrKill, we assume StartMI and EndMI not exist in same basic block, so we add an assertion in that function.This is right after RA.

We extend this assumption to before RA in https://reviews.llvm.org/D81723. This is not right, as before RA the true definition may exist in another block through copy like instructions.

Diff Detail

Event Timeline

shchenz created this revision.Jul 7 2020, 8:03 PM
shchenz retitled this revision from [PowerPC] start and end may exist in different block before to [PowerPC] start and end parameters for fixupIsDeadOrKill may exist in different block before RA.Jul 7 2020, 8:07 PM
shchenz updated this revision to Diff 276614.Jul 8 2020, 6:45 PM

update according to @nemanjai offline comments

shchenz updated this revision to Diff 276906.Jul 9 2020, 8:48 PM
shchenz updated this revision to Diff 276988.Jul 10 2020, 4:25 AM

Hi @nemanjai Thanks for your offline comments. could you please help to have another look at this issue?

gentle ping

nemanjai accepted this revision.Jul 22 2020, 2:14 AM

LGTM. I am really sorry about not getting back to this earlier.

This revision is now accepted and ready to land.Jul 22 2020, 2:14 AM

Thanks for your review. ^-^

This revision was automatically updated to reflect the committed changes.