diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index 3504ca3856084..3fe5478408d45 100644 --- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -292,10 +292,6 @@ bool LoopIdiomRecognize::runOnLoop(Loop *L) { if (Name == "memset" || Name == "memcpy") return false; - // Prevent from asan interception in kernel - if (Name == "__asan_set_shadow_local_memory") - return false; - // Determine if code size heuristics need to be applied. ApplyCodeSizeHeuristics = L->getHeader()->getParent()->hasOptSize() && UseLIRCodeSizeHeurs;