This is an archive of the discontinued LLVM Phabricator instance.

[MachineVerifier] Verify liveins for live-through segments
ClosedPublic

Authored by foad on May 5 2023, 3:25 AM.

Diff Detail

Event Timeline

foad created this revision.May 5 2023, 3:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2023, 3:25 AM
foad requested review of this revision.May 5 2023, 3:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2023, 3:25 AM
foad edited the summary of this revision. (Show Details)

FIXME: CodeGen/X86/2012-01-10-UndefExceptionEdge.ll fails

Fixed by D149954.

arsenm added a comment.May 9 2023, 8:58 AM

Can you add a unit test for this?

foad added a comment.May 15 2023, 3:34 AM

Can you add a unit test for this?

I'm not sure. Do we have any unit tests for specific MachineVerifier failures? I couldn't see any.

Can you add a unit test for this?

I'm not sure. Do we have any unit tests for specific MachineVerifier failures? I couldn't see any.

I was thinking of unittests/MI/LiveIntervalTest.cpp. You can't really write a plain MIR test to produce broken live intervals

foad updated this revision to Diff 524691.May 23 2023, 6:59 AM

Add a unit test.

foad updated this revision to Diff 524693.May 23 2023, 7:05 AM

Add a comment.

arsenm accepted this revision.May 24 2023, 7:02 AM
This revision is now accepted and ready to land.May 24 2023, 7:02 AM
This revision was automatically updated to reflect the committed changes.