1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Set debug location for new PHI nodes created in exit block.

llvm-svn: 130894
This commit is contained in:
Devang Patel 2011-05-04 23:58:22 +00:00
parent f27731bf40
commit 236dc68956

View File

@ -36,6 +36,7 @@
#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"
@ -226,6 +227,7 @@ 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) {