From 21146a3653cdb29790a9d0f557f0f1651befbe9e Mon Sep 17 00:00:00 2001 From: Pavel Date: Fri, 8 Jul 2022 17:48:50 +0400 Subject: Pass llvm.experimental.noalias.scope.decl to IntrinsicLowering so that it strips out these intrinsics --- lib/Module/IntrinsicCleaner.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Module') diff --git a/lib/Module/IntrinsicCleaner.cpp b/lib/Module/IntrinsicCleaner.cpp index bdaca425..8658f611 100644 --- a/lib/Module/IntrinsicCleaner.cpp +++ b/lib/Module/IntrinsicCleaner.cpp @@ -349,6 +349,9 @@ bool IntrinsicCleanerPass::runOnBasicBlock(BasicBlock &b, Module &M) { case Intrinsic::exp2: case Intrinsic::exp: case Intrinsic::expect: +#if LLVM_VERSION_CODE >= LLVM_VERSION(12, 0) + case Intrinsic::experimental_noalias_scope_decl: +#endif case Intrinsic::floor: case Intrinsic::flt_rounds: case Intrinsic::frameaddress: -- cgit 1.4.1