Searched refs:CondCmp (Results 1 – 5 of 5) sorted by relevance
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 807 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-7.0/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 1117 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) { in ProcessBlock() local 1123 Constant *CondConst = dyn_cast<Constant>(CondCmp->getOperand(1)); in ProcessBlock() 1135 LVI->getPredicateAt(CondCmp->getPredicate(), CondCmp->getOperand(0), in ProcessBlock() 1144 if (CondCmp->use_empty()) in ProcessBlock() 1145 CondCmp->eraseFromParent(); in ProcessBlock() 1153 else if (CondCmp->getParent() == BB) { in ProcessBlock() 1155 ConstantInt::getTrue(CondCmp->getType()) : in ProcessBlock() 1156 ConstantInt::getFalse(CondCmp->getType()); in ProcessBlock() 1157 ReplaceFoldableUses(CondCmp, CI); in ProcessBlock() 1165 if (TryToUnfoldSelect(CondCmp, BB)) in ProcessBlock() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 726 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/ |
D | JumpThreading.h | 129 bool TryToUnfoldSelect(CmpInst *CondCmp, BasicBlock *BB);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/ |
D | JumpThreading.h | 144 bool TryToUnfoldSelect(CmpInst *CondCmp, BasicBlock *BB);
|