search for: ismusttailcall

Displaying 1 result from an estimated 1 matches for "ismusttailcall".

2019 Jun 04
2
is this a bug in PruneEH?
...mage */ while(1) { ; } } The -O2 level PruneEH pass uses SimplifyFunction() which contains this code: for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ) if (CallInst *CI = dyn_cast<CallInst>(I++)) if (CI->doesNotReturn() && !CI->isMustTailCall() && !isa<UnreachableInst>(I)) { // This call calls a function that cannot return. Insert an // unreachable instruction after it and simplify the code. Do this // by splitting the BB, adding the unreachable, then deleting the // ne...