[polly] r312020 - Skip ignored intrinsics.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 29 11:27:42 PDT 2017


Author: meinersbur
Date: Tue Aug 29 11:27:42 2017
New Revision: 312020

URL: http://llvm.org/viewvc/llvm-project?rev=312020&view=rev
Log:
Skip ignored intrinsics.

Commit r252725 introduced a "return false" if an ignored intrinsics was
found. The consequence of this was that the mere existence of an ignored
intrinsic (such as llvm.dbg.value) before a call that would have
qualified the block to be an error block, to not be an error block.

The obvious goal was to just skip ignored intrinsics, not changing the
meaning of what an error block is.

Modified:
    polly/trunk/lib/Support/ScopHelper.cpp

Modified: polly/trunk/lib/Support/ScopHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ScopHelper.cpp?rev=312020&r1=312019&r2=312020&view=diff
==============================================================================
--- polly/trunk/lib/Support/ScopHelper.cpp (original)
+++ polly/trunk/lib/Support/ScopHelper.cpp Tue Aug 29 11:27:42 2017
@@ -413,7 +413,7 @@ bool polly::isErrorBlock(BasicBlock &BB,
   for (Instruction &Inst : BB)
     if (CallInst *CI = dyn_cast<CallInst>(&Inst)) {
       if (isIgnoredIntrinsic(CI))
-        return false;
+        continue;
 
       if (!CI->doesNotAccessMemory())
         return true;




More information about the llvm-commits mailing list