diff options
| author | Michael Kruse <llvm-project@meinersbur.de> | 2023-01-25 14:03:57 -0600 |
|---|---|---|
| committer | Michael Kruse <llvm-project@meinersbur.de> | 2023-03-08 17:33:04 -0600 |
| commit | 19afbfe33156d211fa959dadeea46cd17b9c723c (patch) | |
| tree | db53498143b16127c6c0e22a671a8d11eece4152 /polly/lib/CodeGen/BlockGenerators.cpp | |
| parent | 115c7beda74f3cfaf83b91d14bc97a39bff4cf19 (diff) | |
[Polly] Remove Polly-ACC.
Polly-ACC is unmaintained and since it has never been ported to the NPM pipeline, since D136621 it is not even accessible anymore without manually specifying the passes on the `opt` command line.
Since there is no plan to put it to a maintainable state, remove it from Polly.
Reviewed By: grosser
Differential Revision: https://reviews.llvm.org/D142580
Diffstat (limited to 'polly/lib/CodeGen/BlockGenerators.cpp')
| -rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 5dbef232b2d3..1c18f2dbbbdb 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -238,14 +238,8 @@ void BlockGenerator::copyInstScalar(ScopStmt &Stmt, Instruction *Inst, Builder.Insert(NewInst); BBMap[Inst] = NewInst; - // 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. - if (NewInst->getModule() != Inst->getModule()) - NewInst->setDebugLoc(llvm::DebugLoc()); + assert(NewInst->getModule() == Inst->getModule() && + "Expecting instructions to be in the same module"); if (!NewInst->getType()->isVoidTy()) NewInst->setName("p_" + Inst->getName()); |
