There is no need to force DebugLoc on a PHI at this point.
authorDevang Patel <dpatel@apple.com>
Mon, 16 May 2011 22:05:03 +0000 (22:05 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 16 May 2011 22:05:03 +0000 (22:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131427 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LCSSA.cpp

index 885da337cf3ef6b5ee14e907923ce1fd1e8f2e55..b654111eba74e2559a21b1e7900571a91c65ca46 100644 (file)
@@ -36,7 +36,6 @@
 #include "llvm/Analysis/Dominators.h"
 #include "llvm/Analysis/LoopPass.h"
 #include "llvm/Analysis/ScalarEvolution.h"
-#include "llvm/Transforms/Utils/BasicBlockUtils.h"
 #include "llvm/Transforms/Utils/SSAUpdater.h"
 #include "llvm/ADT/Statistic.h"
 #include "llvm/ADT/STLExtras.h"
@@ -227,7 +226,6 @@ bool LCSSA::ProcessInstruction(Instruction *Inst,
                                   PredCache.GetNumPreds(ExitBB),
                                   Inst->getName()+".lcssa",
                                   ExitBB->begin());
-    PN->setDebugLoc(GetFirstDebugLocInBasicBlock(ExitBB));
 
     // Add inputs from inside the loop for this PHI.
     for (BasicBlock **PI = PredCache.GetPreds(ExitBB); *PI; ++PI) {