Home
last modified time | relevance | path

Searched refs:CondCmp (Results 1 – 3 of 3) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp1164 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondWithoutFreeze)) { in processBlock() local
1168 if (Constant *CondConst = dyn_cast<Constant>(CondCmp->getOperand(1))) { in processBlock()
1170 LVI->getPredicateAt(CondCmp->getPredicate(), CondCmp->getOperand(0), in processBlock()
1182 ConstantInt::getTrue(CondCmp->getType()) : in processBlock()
1183 ConstantInt::getFalse(CondCmp->getType()); in processBlock()
1184 if (replaceFoldableUses(CondCmp, CI, BB)) in processBlock()
1190 if (tryToUnfoldSelect(CondCmp, BB)) in processBlock()
1205 if (CmpInst *CondCmp = dyn_cast<CmpInst>(SimplifyValue)) in processBlock() local
1206 if (isa<Constant>(CondCmp->getOperand(1))) in processBlock()
1207 SimplifyValue = CondCmp->getOperand(0); in processBlock()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1297 } else if (auto *CondCmp = dyn_cast<CmpInst>(I)) { in simplifyTerminatorLeadingToRet() local
1301 GetFirstValidInstruction(CondCmp->getNextNode())); in simplifyTerminatorLeadingToRet()
1302 if (!BR || !BR->isConditional() || CondCmp != BR->getCondition()) in simplifyTerminatorLeadingToRet()
1308 ConstantInt *Cond0 = TryResolveConstant(CondCmp->getOperand(0)); in simplifyTerminatorLeadingToRet()
1309 auto *Cond1 = dyn_cast<ConstantInt>(CondCmp->getOperand(1)); in simplifyTerminatorLeadingToRet()
1317 CondCmp->getPredicate(), Cond0, Cond1, DL)); in simplifyTerminatorLeadingToRet()
1321 CondCmp->replaceAllUsesWith(ConstResult); in simplifyTerminatorLeadingToRet()
1322 CondCmp->eraseFromParent(); in simplifyTerminatorLeadingToRet()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Scalar/
H A DJumpThreading.h160 bool tryToUnfoldSelect(CmpInst *CondCmp, BasicBlock *BB);