[llvm-commits] [llvm] r137628 - /llvm/trunk/lib/Analysis/LoopInfo.cpp
Duncan Sands
baldrick at free.fr
Mon Aug 15 11:26:24 PDT 2011
Hi Bill,
> The landingpad instruction isn't loop-invariant.
shouldn't mayReadFromMemory() return 'true' for a landing pad instruction?
Ciao, Duncan.
>
> Modified:
> llvm/trunk/lib/Analysis/LoopInfo.cpp
>
> Modified: llvm/trunk/lib/Analysis/LoopInfo.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopInfo.cpp?rev=137628&r1=137627&r2=137628&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Analysis/LoopInfo.cpp (original)
> +++ llvm/trunk/lib/Analysis/LoopInfo.cpp Mon Aug 15 13:22:49 2011
> @@ -99,6 +99,9 @@
> return false;
> if (I->mayReadFromMemory())
> return false;
> + // The landingpad instruction is immobile.
> + if (isa<LandingPadInst>(I))
> + return false;
> // Determine the insertion point, unless one was given.
> if (!InsertPt) {
> BasicBlock *Preheader = getLoopPreheader();
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list