This is an archive of the discontinued LLVM Phabricator instance.

[LoopInfo] Update getExitEdges to accept vector of pairs for non const BasicBlock
ClosedPublic

Authored by skatkov on Jul 7 2019, 10:35 PM.

Details

Summary

D63921 requires getExitEdges fills a vector of Edge pairs where
BasicBlocks are not constant.

This is an alternative solution to D64060

Diff Detail

Repository
rL LLVM

Event Timeline

skatkov created this revision.Jul 7 2019, 10:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2019, 10:35 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
reames accepted this revision.Jul 8 2019, 10:07 AM

Commented on the other, handn't realized this was already posted. I strongly prefer this version.

This revision is now accepted and ready to land.Jul 8 2019, 10:07 AM
fhahn accepted this revision.Jul 8 2019, 10:19 AM

LGTM, thanks for the alternative approach. It would be great if you could add a sentence about the reasoning (more consistent with the rest of the Loop APIs) in the commit message.

This revision was automatically updated to reflect the committed changes.