[LLVMdev] Is MachineLoop Simplify Form?

Andrew Trick atrick at apple.com
Thu Jul 28 15:28:45 PDT 2011


On Jul 28, 2011, at 2:56 PM, Jakub Staszak wrote:

> Is there any reason that we don't have isLoopSimplifyForm method in LoopBase? Can I move it there?
> 
> -Kuba

I'll take a wild guess that it's because LoopSimplify doesn't run on MachineLoops and lowering passes can invalidate it. You can always test for individual loop properties that you need instead of calling isLoopSimplify. For example, do you *really* need hasDedicatedExits()? If your MachineLoops don't need it, then you should leave it's implementation LoopInfo.cpp.

-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110728/980ca4d9/attachment.html>


More information about the llvm-dev mailing list