This is an archive of the discontinued LLVM Phabricator instance.

Simplify blockaddress usage before giving up in MergeBlockIntoPredecessor
ClosedPublic

Authored by trentxintong on Jun 18 2018, 9:20 AM.

Details

Summary

Simplify blockaddress usage before giving up in MergeBlockIntoPredecessor

This is a missing small optimization in MergeBlockIntoPredecessor.

This helps with one simplifycfg test which expects this case to be handled.

Diff Detail

Repository
rL LLVM

Event Timeline

trentxintong created this revision.Jun 18 2018, 9:20 AM
asbirlea requested changes to this revision.Jun 18 2018, 3:18 PM

Thank you for adding this!

unittests/Transforms/Utils/BasicBlockUtils.cpp
80 ↗(On Diff #151730)

MergeBlockIntoPredecessor(BB) The other arguments are nullptr by default.

This revision now requires changes to proceed.Jun 18 2018, 3:18 PM
asbirlea accepted this revision.Jun 18 2018, 3:57 PM
This revision is now accepted and ready to land.Jun 18 2018, 3:57 PM
This revision was automatically updated to reflect the committed changes.