Home
last modified time | relevance | path

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

/external/llvm-project/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/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/llvm-project/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp1119 Instruction *CondInst = dyn_cast<Instruction>(Condition); in processBlock() local
1122 if (!CondInst) { in processBlock()
1129 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) { in processBlock()
1191 Value *SimplifyValue = CondInst; in processBlock()
1208 if (PHINode *PN = dyn_cast<PHINode>(CondInst)) in processBlock()
1215 if (processThreadableEdges(CondInst, BB, Preference, Terminator)) in processBlock()
1221 isa<FreezeInst>(CondInst) ? cast<FreezeInst>(CondInst)->getOperand(0) in processBlock()
1222 : CondInst); in processBlock()
1228 if (CondInst->getOpcode() == Instruction::Xor && in processBlock()
1229 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in processBlock()
[all …]
DEarlyCSE.cpp800 bool handleBranchCondition(Instruction *CondInst, const BranchInst *BI,
1027 bool EarlyCSE::handleBranchCondition(Instruction *CondInst, in handleBranchCondition() argument
1031 assert(BI->getCondition() == CondInst && "Wrong condition?"); in handleBranchCondition()
1050 WorkList.push_back(CondInst); in handleBranchCondition()
1181 auto *CondInst = dyn_cast<Instruction>(BI->getCondition()); in processNode() local
1182 if (CondInst && SimpleValue::canHandle(CondInst)) in processNode()
1183 Changed |= handleBranchCondition(CondInst, BI, BB, Pred); in processNode()
DSimpleLoopUnswitch.cpp389 if (auto *CondInst = dyn_cast<Instruction>(BI.getCondition())) in unswitchTrivialBranch() local
390 Invariants = collectHomogenousInstGraphLoopInvariants(L, *CondInst, LI); in unswitchTrivialBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp1086 Instruction *CondInst = dyn_cast<Instruction>(Condition); in ProcessBlock() local
1089 if (!CondInst) { in ProcessBlock()
1096 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) { in ProcessBlock()
1160 Value *SimplifyValue = CondInst; in ProcessBlock()
1172 if (PHINode *PN = dyn_cast<PHINode>(CondInst)) in ProcessBlock()
1179 if (ProcessThreadableEdges(CondInst, BB, Preference, Terminator)) in ProcessBlock()
1184 if (PHINode *PN = dyn_cast<PHINode>(CondInst)) in ProcessBlock()
1189 if (CondInst->getOpcode() == Instruction::Xor && in ProcessBlock()
1190 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock()
1191 return ProcessBranchOnXOR(cast<BinaryOperator>(CondInst)); in ProcessBlock()
[all …]
DEarlyCSE.cpp736 bool handleBranchCondition(Instruction *CondInst, const BranchInst *BI,
849 bool EarlyCSE::handleBranchCondition(Instruction *CondInst, in handleBranchCondition() argument
853 assert(BI->getCondition() == CondInst && "Wrong condition?"); in handleBranchCondition()
872 WorkList.push_back(CondInst); in handleBranchCondition()
923 auto *CondInst = dyn_cast<Instruction>(BI->getCondition()); in processNode() local
924 if (CondInst && SimpleValue::canHandle(CondInst)) in processNode()
925 Changed |= handleBranchCondition(CondInst, BI, BB, Pred); in processNode()
DSimpleLoopUnswitch.cpp382 if (auto *CondInst = dyn_cast<Instruction>(BI.getCondition())) in unswitchTrivialBranch() local
383 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/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/llvm-project/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-project/llvm/unittests/Frontend/
DOpenMPIRBuilderTest.cpp1222 CmpInst *CondInst = cast<CmpInst>(EntryBr->getCondition()); in TEST_F() local
1223 EXPECT_TRUE(isa<CallInst>(CondInst->getOperand(0))); in TEST_F()
1225 CallInst *MasterEntryCI = cast<CallInst>(CondInst->getOperand(0)); in TEST_F()
1416 CmpInst *CondInst = cast<CmpInst>(EntryBr->getCondition()); in TEST_F() local
1417 EXPECT_TRUE(isa<CallInst>(CondInst->getOperand(0))); in TEST_F()
1419 CallInst *SingleEntryCI = cast<CallInst>(CondInst->getOperand(0)); in TEST_F()
/external/llvm-project/polly/lib/CodeGen/
DBlockGenerators.cpp642 if (auto *CondInst = dyn_cast<Instruction>(Cond)) in generateConditionalExecution() local
643 CondInst->setName("polly." + Subject + ".cond"); in generateConditionalExecution()