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.

llvm-svn: 312020
This commit is contained in:
Michael Kruse 2017-08-29 18:27:42 +00:00
parent 2df7fc7991
commit 25d3f85a43
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ bool polly::isErrorBlock(BasicBlock &BB, const Region &R, LoopInfo &LI,
for (Instruction &Inst : BB)
if (CallInst *CI = dyn_cast<CallInst>(&Inst)) {
if (isIgnoredIntrinsic(CI))
return false;
continue;
if (!CI->doesNotAccessMemory())
return true;