mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-03 11:24:18 +00:00
Set debug location for new PHI nodes created in exit block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -36,6 +36,7 @@
|
|||||||
#include "llvm/Analysis/Dominators.h"
|
#include "llvm/Analysis/Dominators.h"
|
||||||
#include "llvm/Analysis/LoopPass.h"
|
#include "llvm/Analysis/LoopPass.h"
|
||||||
#include "llvm/Analysis/ScalarEvolution.h"
|
#include "llvm/Analysis/ScalarEvolution.h"
|
||||||
|
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
|
||||||
#include "llvm/Transforms/Utils/SSAUpdater.h"
|
#include "llvm/Transforms/Utils/SSAUpdater.h"
|
||||||
#include "llvm/ADT/Statistic.h"
|
#include "llvm/ADT/Statistic.h"
|
||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
@ -226,6 +227,7 @@ bool LCSSA::ProcessInstruction(Instruction *Inst,
|
|||||||
PredCache.GetNumPreds(ExitBB),
|
PredCache.GetNumPreds(ExitBB),
|
||||||
Inst->getName()+".lcssa",
|
Inst->getName()+".lcssa",
|
||||||
ExitBB->begin());
|
ExitBB->begin());
|
||||||
|
PN->setDebugLoc(GetFirstDebugLocInBasicBlock(ExitBB));
|
||||||
|
|
||||||
// Add inputs from inside the loop for this PHI.
|
// Add inputs from inside the loop for this PHI.
|
||||||
for (BasicBlock **PI = PredCache.GetPreds(ExitBB); *PI; ++PI) {
|
for (BasicBlock **PI = PredCache.GetPreds(ExitBB); *PI; ++PI) {
|
||||||
|
Reference in New Issue
Block a user