Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp807 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) { in ProcessBlock() local
813 Constant *CondConst = dyn_cast<Constant>(CondCmp->getOperand(1)); in ProcessBlock()
816 LVI->getPredicateAt(CondCmp->getPredicate(), CondCmp->getOperand(0), in ProcessBlock()
824 if (CondCmp->use_empty()) in ProcessBlock()
825 CondCmp->eraseFromParent(); in ProcessBlock()
826 else if (CondCmp->getParent() == BB) { in ProcessBlock()
830 ConstantInt::getTrue(CondCmp->getType()) : in ProcessBlock()
831 ConstantInt::getFalse(CondCmp->getType()); in ProcessBlock()
832 CondCmp->replaceAllUsesWith(CI); in ProcessBlock()
833 CondCmp->eraseFromParent(); in ProcessBlock()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DJumpThreading.cpp726 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) { in ProcessBlock() local
731 Constant *CondConst = dyn_cast<Constant>(CondCmp->getOperand(1)); in ProcessBlock()
734 (!isa<Instruction>(CondCmp->getOperand(0)) || in ProcessBlock()
735 cast<Instruction>(CondCmp->getOperand(0))->getParent() != BB)) { in ProcessBlock()
741 LVI->getPredicateOnEdge(CondCmp->getPredicate(), CondCmp->getOperand(0), in ProcessBlock()
747 LVI->getPredicateOnEdge(CondCmp->getPredicate(), in ProcessBlock()
748 CondCmp->getOperand(0), CondConst, *PI, BB); in ProcessBlock()
771 if (CmpInst *CondCmp = dyn_cast<CmpInst>(SimplifyValue)) in ProcessBlock() local
772 if (isa<Constant>(CondCmp->getOperand(1))) in ProcessBlock()
773 SimplifyValue = CondCmp->getOperand(0); in ProcessBlock()
/external/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h129 bool TryToUnfoldSelect(CmpInst *CondCmp, BasicBlock *BB);