This is an archive of the discontinued LLVM Phabricator instance.

[Mips] Conditionally remove successor block
ClosedPublic

Authored by smaksimovic on Oct 26 2018, 5:55 AM.

Details

Summary

In MipsBranchExpansion::splitMBB, upon splitting a block with two direct branches,
remove the successor of the newly created block (which inherits successors from the
original block) which is pointed to by the last branch in the original block only if
the targets of two branches differ.

This is to fix the failing test when ran with -verify-machineinstrs enabled.

Diff Detail

Event Timeline

smaksimovic created this revision.Oct 26 2018, 5:55 AM
This revision is now accepted and ready to land.Oct 31 2018, 8:13 AM
This revision was automatically updated to reflect the committed changes.