Home
last modified time | relevance | path

Searched refs:CondInst (Results 1 – 12 of 12) sorted by relevance

/external/swiftshader/third_party/LLVM/examples/Fibonacci/
Dfibonacci.cpp64 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); in CreateFibFunction() local
65 BranchInst::Create(RetBB, RecurseBB, CondInst, BB); in CreateFibFunction()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp77 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); in CreateFibFunction() local
78 BranchInst::Create(RetBB, RecurseBB, CondInst, BB); in CreateFibFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Fibonacci/
Dfibonacci.cpp76 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); in CreateFibFunction() local
77 BranchInst::Create(RetBB, RecurseBB, CondInst, BB); in CreateFibFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp1107 Instruction *CondInst = dyn_cast<Instruction>(Condition); in ProcessBlock() local
1110 if (!CondInst) { in ProcessBlock()
1117 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) { in ProcessBlock()
1174 Value *SimplifyValue = CondInst; in ProcessBlock()
1186 if (PHINode *PN = dyn_cast<PHINode>(CondInst)) in ProcessBlock()
1193 if (ProcessThreadableEdges(CondInst, BB, Preference, Terminator)) in ProcessBlock()
1198 if (PHINode *PN = dyn_cast<PHINode>(CondInst)) in ProcessBlock()
1203 if (CondInst->getOpcode() == Instruction::Xor && in ProcessBlock()
1204 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock()
1205 return ProcessBranchOnXOR(cast<BinaryOperator>(CondInst)); in ProcessBlock()
[all …]
DEarlyCSE.cpp582 bool handleBranchCondition(Instruction *CondInst, const BranchInst *BI,
713 bool EarlyCSE::handleBranchCondition(Instruction *CondInst, in handleBranchCondition() argument
717 assert(BI->getCondition() == CondInst && "Wrong condition?"); in handleBranchCondition()
736 WorkList.push_back(CondInst); in handleBranchCondition()
787 auto *CondInst = dyn_cast<Instruction>(BI->getCondition()); in processNode() local
788 if (CondInst && SimpleValue::canHandle(CondInst)) in processNode()
789 Changed |= handleBranchCondition(CondInst, BI, BB, Pred); in processNode()
DSimpleLoopUnswitch.cpp345 if (auto *CondInst = dyn_cast<Instruction>(BI.getCondition())) in unswitchTrivialBranch() local
346 Invariants = collectHomogenousInstGraphLoopInvariants(L, *CondInst, LI); in unswitchTrivialBranch()
/external/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp515 if (auto *CondInst = dyn_cast<Instruction>(BI->getCondition())) in processNode() local
516 if (SimpleValue::canHandle(CondInst)) { in processNode()
521 AvailableValues.insert(CondInst, ConditionalConstant); in processNode()
523 << CondInst->getName() << "' as " << *ConditionalConstant in processNode()
527 replaceDominatedUsesWith(CondInst, ConditionalConstant, DT, in processNode()
DJumpThreading.cpp796 Instruction *CondInst = dyn_cast<Instruction>(Condition); in ProcessBlock() local
799 if (!CondInst) { in ProcessBlock()
807 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) { in ProcessBlock()
848 Value *SimplifyValue = CondInst; in ProcessBlock()
864 if (ProcessThreadableEdges(CondInst, BB, Preference, Terminator)) in ProcessBlock()
869 if (PHINode *PN = dyn_cast<PHINode>(CondInst)) in ProcessBlock()
875 if (CondInst->getOpcode() == Instruction::Xor && in ProcessBlock()
876 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock()
877 return ProcessBranchOnXOR(cast<BinaryOperator>(CondInst)); in ProcessBlock()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DJumpThreading.cpp715 Instruction *CondInst = dyn_cast<Instruction>(Condition); in ProcessBlock() local
718 if (CondInst == 0) { in ProcessBlock()
726 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) { in ProcessBlock()
770 Value *SimplifyValue = CondInst; in ProcessBlock()
786 if (ProcessThreadableEdges(CondInst, BB, Preference)) in ProcessBlock()
791 if (PHINode *PN = dyn_cast<PHINode>(CondInst)) in ProcessBlock()
797 if (CondInst->getOpcode() == Instruction::Xor && in ProcessBlock()
798 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock()
799 return ProcessBranchOnXOR(cast<BinaryOperator>(CondInst)); in ProcessBlock()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/ParallelJIT/
DParallelJIT.cpp106 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); in CreateFibFunction() local
107 BranchInst::Create(RetBB, RecurseBB, CondInst, BB); in CreateFibFunction()
/external/llvm/examples/ParallelJIT/
DParallelJIT.cpp108 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); in CreateFibFunction() local
109 BranchInst::Create(RetBB, RecurseBB, CondInst, BB); in CreateFibFunction()
/external/swiftshader/third_party/LLVM/examples/ParallelJIT/
DParallelJIT.cpp91 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); in CreateFibFunction() local
92 BranchInst::Create(RetBB, RecurseBB, CondInst, BB); in CreateFibFunction()