summaryrefslogtreecommitdiff
path: root/polly/lib/CodeGen/BlockGenerators.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2017-07-31 11:43:38 +0000
committerTobias Grosser <tobias@grosser.es>2017-07-31 11:43:38 +0000
commit39977e4e7678fda25c2a4ccea8b14f331db77d04 (patch)
tree9c259d63a2d7e36e26f254507c91ef3ec651bbe8 /polly/lib/CodeGen/BlockGenerators.cpp
parent4a5764e3caf49e1b290a0a0e7b588e2109f4f292 (diff)
Revert "Remove Debug metadata from copied instruction to prevent Module verification failure"
This reverts commit r309490 as it triggers on our AOSP buildbut error messages of the form: inlinable function call in a function with debug info must have a !dbg location llvm-svn: 309556
Diffstat (limited to 'polly/lib/CodeGen/BlockGenerators.cpp')
-rw-r--r--polly/lib/CodeGen/BlockGenerators.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp
index b226bd964a24..5b01f9508929 100644
--- a/polly/lib/CodeGen/BlockGenerators.cpp
+++ b/polly/lib/CodeGen/BlockGenerators.cpp
@@ -234,14 +234,6 @@ void BlockGenerator::copyInstScalar(ScopStmt &Stmt, Instruction *Inst,
NewInst->replaceUsesOfWith(OldOperand, NewOperand);
}
- // When copying the instruction onto the Module meant for the GPU,
- // debug metadata attached to an instruction causes all related
- // metadata to be pulled into the Module. This includes the DICompileUnit,
- // which will not be listed in llvm.dbg.cu of the Module since the Module
- // doesn't contain one. This fails the verification of the Module and the
- // subsequent generation of the ASM string.
- NewInst->setDebugLoc(llvm::DebugLoc());
-
Builder.Insert(NewInst);
BBMap[Inst] = NewInst;