mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-10 11:23:52 +00:00
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:
parent
2df7fc7991
commit
25d3f85a43
@ -413,7 +413,7 @@ bool polly::isErrorBlock(BasicBlock &BB, const Region &R, LoopInfo &LI,
|
|||||||
for (Instruction &Inst : BB)
|
for (Instruction &Inst : BB)
|
||||||
if (CallInst *CI = dyn_cast<CallInst>(&Inst)) {
|
if (CallInst *CI = dyn_cast<CallInst>(&Inst)) {
|
||||||
if (isIgnoredIntrinsic(CI))
|
if (isIgnoredIntrinsic(CI))
|
||||||
return false;
|
continue;
|
||||||
|
|
||||||
if (!CI->doesNotAccessMemory())
|
if (!CI->doesNotAccessMemory())
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user