This is an archive of the discontinued LLVM Phabricator instance.

call dependencies between BranchFolder::replaceTailWithBranchTo and BranchFolder::mergeCommonTails
Needs ReviewPublic

Authored by pbrunet on Nov 30 2018, 2:47 AM.

Details

Reviewers
MatzeB
Summary

Both functions use LiveRegs but init is only done in mergeCommonTails. It creates a dependency between this function while an init instead of clear in replaceTailWithBranchTo would do the job.

Also, if MBB->predecessors is empty (I don't know if it is possible), the initialization would not be done.

Diff Detail

Event Timeline

pbrunet created this revision.Nov 30 2018, 2:47 AM

Update line numbers as previous diff was on an old branch.