HomePhabricator

[LoopInfo] Fix Loop::getLoopID() for loops with multiple latches

Description

[LoopInfo] Fix Loop::getLoopID() for loops with multiple latches

The previous implementation traversed all loop blocks and bailed if one
was not a latch block. Since we are only interested in latch blocks, we
should only traverse those.

Details

Committed
jdoerfertSep 11 2018, 4:44 AM
Parents
rL341925: [clang-tidy] Add a missing comma after "flags"
Branches
Unknown
Tags
Unknown