[llvm-commits] [llvm] r44384 - in /llvm/trunk: include/llvm/Analysis/LoopInfo.h include/llvm/CodeGen/MachineLoopInfo.h lib/CodeGen/MachineLoopInfo.cpp

Bill Wendling isanbard at gmail.com
Tue Nov 27 17:51:47 PST 2007


Hi Owen,

Thanks! :-) A few comments:

> +  // isLoopHeader - True if the block is a loop header node

You probably want a /// comment here.

> +  virtual void print(std::ostream &O, const Module* M = 0) const {
> +    if (O) LI->print(O, M);
> +  }

I think that "if (O)" will always be true here, right?

> +// Allow clients to walk the list of nested loops...
> +template <> struct GraphTraits<const MachineLoop*> {
> +  typedef const MachineLoop NodeType;
> +  typedef std::vector<MachineLoop*>::const_iterator ChildIteratorType;

Should this be:

  typedef std::vector<const MachineLoop*>::const_iterator ChildIteratorType;

?

-bw



More information about the llvm-commits mailing list