This is an archive of the discontinued LLVM Phabricator instance.

[MachineSink][NFC] delete some useless code
AbandonedPublic

Authored by shchenz on Apr 19 2022, 3:06 AM.

Details

Summary

SuccToSinkTo dominates all users of MI, so MI->getParent() must dominate SuccToSinkTo, otherwise there will be use without def issue?

Diff Detail

Event Timeline

shchenz created this revision.Apr 19 2022, 3:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2022, 3:06 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
shchenz requested review of this revision.Apr 19 2022, 3:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2022, 3:06 AM

gentle ping

nikic added a subscriber: nikic.Apr 26 2022, 12:46 AM

If I replace this check with an assertion, I get 63 assertion failures in X86 tests.

shchenz abandoned this revision.Apr 26 2022, 3:55 AM

If I replace this check with an assertion, I get 63 assertion failures in X86 tests.

Yeah, I also got some assertion failures on PowerPC. They are related to sinking instructions with PHI users. Thanks for the good assertions ways. @nikic

For PHI instruction the values have to dominate the end of the predecessor block for the respective PHI input; you don't necessarily have to dominate the PHI itself.