[llvm-commits] [llvm] r98026 - /llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp

Dale Johannesen dalej at apple.com
Mon Mar 8 17:08:11 PST 2010


Author: johannes
Date: Mon Mar  8 19:08:11 2010
New Revision: 98026

URL: http://llvm.org/viewvc/llvm-project?rev=98026&view=rev
Log:
Another place where debug info affected codegen.


Modified:
    llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp

Modified: llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp?rev=98026&r1=98025&r2=98026&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp Mon Mar  8 19:08:11 2010
@@ -1286,6 +1286,8 @@
       // there) so that it is guaranteed to dominate any user inside the loop.
       if (L && S->hasComputableLoopEvolution(L) && L != PostIncLoop)
         InsertPt = L->getHeader()->getFirstNonPHI();
+      while (isa<DbgInfoIntrinsic>(InsertPt))
+        InsertPt = llvm::next(BasicBlock::iterator(InsertPt));
       while (isInsertedInstruction(InsertPt))
         InsertPt = llvm::next(BasicBlock::iterator(InsertPt));
       break;





More information about the llvm-commits mailing list