llvm::compareLoops

Assert that loop L matches OtherL structurally for verification.

Synopsis

Declared in <llvm/Support/GenericLoopInfoImpl.h>

template<
    class BlockT,
    class LoopT>
static
void
compareLoops(
    LoopT const* L,
    LoopT const* OtherL,
    DenseMap<BlockT*, LoopT const*>& OtherLoopHeaders);

Parameters

NameDescription
LLoop from the LoopInfo under test.
OtherLCorresponding loop from a freshly computed LoopInfo.
OtherLoopHeadersMap of headers to loops in the computed LoopInfo; entries are erased as subloops are matched.