We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17d4f9b commit ac794d4Copy full SHA for ac794d4
llvm/lib/Transforms/Utils/LCSSA.cpp
@@ -36,6 +36,7 @@
36
#include "llvm/Analysis/Dominators.h"
37
#include "llvm/Analysis/LoopPass.h"
38
#include "llvm/Analysis/ScalarEvolution.h"
39
+#include "llvm/Transforms/Utils/BasicBlockUtils.h"
40
#include "llvm/Transforms/Utils/SSAUpdater.h"
41
#include "llvm/ADT/Statistic.h"
42
#include "llvm/ADT/STLExtras.h"
@@ -226,6 +227,7 @@ bool LCSSA::ProcessInstruction(Instruction *Inst,
226
227
PredCache.GetNumPreds(ExitBB),
228
Inst->getName()+".lcssa",
229
ExitBB->begin());
230
+ PN->setDebugLoc(GetFirstDebugLocInBasicBlock(ExitBB));
231
232
// Add inputs from inside the loop for this PHI.
233
for (BasicBlock **PI = PredCache.GetPreds(ExitBB); *PI; ++PI) {
0 commit comments