Index: lib/CodeGen/IslNodeBuilder.cpp =================================================================== --- lib/CodeGen/IslNodeBuilder.cpp +++ lib/CodeGen/IslNodeBuilder.cpp @@ -204,7 +204,9 @@ /// Extract the values and SCEVs needed to generate code for a block. static int findReferencesInBlock(struct SubtreeReferences &References, const ScopStmt *Stmt, const BasicBlock *BB) { - for (const Instruction &Inst : *BB) + for (const Instruction &Inst : *BB) { + if (polly::isIgnoredIntrinsic(&Inst)) + continue; for (Value *SrcVal : Inst.operands()) { auto *Scope = References.LI.getLoopFor(BB); if (canSynthesize(SrcVal, References.S, &References.SE, Scope)) { @@ -213,6 +215,7 @@ } else if (Value *NewVal = References.GlobalMap.lookup(SrcVal)) References.Values.insert(NewVal); } + } return 0; } Index: lib/CodeGen/PPCGCodeGeneration.cpp =================================================================== --- lib/CodeGen/PPCGCodeGeneration.cpp +++ lib/CodeGen/PPCGCodeGeneration.cpp @@ -28,6 +28,7 @@ #include "llvm/Analysis/ScalarEvolutionAliasAnalysis.h" #include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/Analysis/TargetTransformInfo.h" +#include "llvm/IR/DebugInfo.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Verifier.h" #include "llvm/Support/TargetRegistry.h" @@ -1707,6 +1708,7 @@ } std::string GPUNodeBuilder::finalizeKernelFunction() { + llvm::StripDebugInfo(*GPUModule); if (verifyModule(*GPUModule)) { BuildSuccessful = false; return "";