This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Allow partial tail duplication in Machine Block Placement.
ClosedPublic

Authored by hoyFB on Apr 8 2020, 11:55 AM.

Details

Summary

A count profile may affect tail duplication's heuristic causing a block to be duplicated in only a part of its predecessors. This is not allowed in the Machine Block Placement pass where an assert will go off. I'm removing the assert and making the optimization bail out when such case happens.

Diff Detail

Event Timeline

hoyFB created this revision.Apr 8 2020, 11:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2020, 11:55 AM
hoyFB edited the summary of this revision. (Show Details)Apr 8 2020, 11:55 AM
hoyFB added a reviewer: wenlei.
Carrot accepted this revision.Apr 10 2020, 1:10 PM

LGTM.
Thanks for the fixing.

This revision is now accepted and ready to land.Apr 10 2020, 1:10 PM
This revision was automatically updated to reflect the committed changes.