Lines Matching defs:predecessor
152 /// Simplify a branch to a block that has a single predecessor. This effectively
156 // Check that the successor block has a single predecessor.
302 // Otherwise, if the current block is the only predecessor insert selects
327 /// ^bb1: // has single predecessor
336 /// ^bb1: // has single predecessor
346 // Check that we have a single distinct predecessor.
348 Block *predecessor = currentBlock->getSinglePredecessor();
349 if (!predecessor)
352 // Check that the predecessor terminates with a conditional branch to this
354 auto predBranch = dyn_cast<CondBranchOp>(predecessor->getTerminator());
394 // Check that we have a single distinct predecessor.
404 // either the true of false edge as a predecessor. For now, we fall
405 // back to checking the single predecessor is given by the true/fasle
804 // Check that we have a single distinct predecessor.
806 Block *predecessor = currentBlock->getSinglePredecessor();
807 if (!predecessor)
810 // Check that the predecessor terminates with a switch branch to this block
813 auto predSwitch = dyn_cast<SwitchOp>(predecessor->getTerminator());
856 // Check that we have a single distinct predecessor.
858 Block *predecessor = currentBlock->getSinglePredecessor();
859 if (!predecessor)
862 // Check that the predecessor terminates with a switch branch to this block
865 auto predSwitch = dyn_cast<SwitchOp>(predecessor->getTerminator());