Home | History | Annotate | Download | only in Scalar

Lines Matching refs:SI

128     bool OptimizeSelectInst(SelectInst *SI);
1296 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
1299 MemoryUses.push_back(std::make_pair(SI, opNo));
1808 static bool isFormingBranchFromSelectProfitable(SelectInst *SI) {
1814 CmpInst *Cmp = dyn_cast<CmpInst>(SI->getCondition());
1837 bool CodeGenPrepare::OptimizeSelectInst(SelectInst *SI) {
1838 bool VectorCond = !SI->getCondition()->getType()->isIntegerTy(1);
1847 else if (SI->getType()->isVectorTy())
1857 !isFormingBranchFromSelectProfitable(SI))
1864 BasicBlock *StartBlock = SI->getParent();
1865 BasicBlock::iterator SplitPt = ++(BasicBlock::iterator(SI));
1869 BasicBlock *SmallBlock = BasicBlock::Create(SI->getContext(), "select.mid",
1878 BranchInst::Create(NextBlock, SmallBlock, SI->getCondition(), SI);
1881 PHINode *PN = PHINode::Create(SI->getType(), 2, "", NextBlock->begin());
1882 PN->takeName(SI);
1883 PN->addIncoming(SI->getTrueValue(), StartBlock);
1884 PN->addIncoming(SI->getFalseValue(), SmallBlock);
1885 SI->replaceAllUsesWith(PN);
1886 SI->eraseFromParent();
1937 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
1939 return OptimizeMemoryInst(I, SI->getOperand(1),
1940 SI->getOperand(0)->getType());
1961 if (SelectInst *SI = dyn_cast<SelectInst>(I))
1962 return OptimizeSelectInst(SI);