Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64RedundantCopyElimination.cpp94 bool knownRegValInBlock(MachineInstr &CondBr, MachineBasicBlock *MBB,
126 MachineInstr &CondBr, MachineBasicBlock *MBB, in knownRegValInBlock() argument
128 unsigned Opc = CondBr.getOpcode(); in knownRegValInBlock()
133 MBB == CondBr.getOperand(1).getMBB()) || in knownRegValInBlock()
135 MBB != CondBr.getOperand(1).getMBB())) { in knownRegValInBlock()
136 FirstUse = CondBr; in knownRegValInBlock()
137 KnownRegs.push_back(RegImm(CondBr.getOperand(0).getReg(), 0)); in knownRegValInBlock()
146 AArch64CC::CondCode CC = (AArch64CC::CondCode)CondBr.getOperand(0).getImm(); in knownRegValInBlock()
150 MachineBasicBlock *BrTarget = CondBr.getOperand(1).getMBB(); in knownRegValInBlock()
157 assert(PredMBB == CondBr.getParent() && in knownRegValInBlock()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/FuzzMutate/
DOperationsTest.cpp203 auto *CondBr = cast<BranchInst>(BB1->getTerminator()); in TEST() local
204 EXPECT_THAT(CondBr->getCondition(), Eq(Cond)); in TEST()
205 ASSERT_THAT(CondBr->getNumSuccessors(), Eq(2u)); in TEST()
206 ASSERT_THAT(CondBr->getSuccessor(0), Eq(BB1)); in TEST()
207 auto *BB2 = CondBr->getSuccessor(1); in TEST()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp812 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() local
814 if (CondBr && CondConst && CondBr->isConditional()) { in ProcessBlock()
817 CondConst, CondBr); in ProcessBlock()
821 CondBr->getSuccessor(ToRemove)->removePredecessor(BB, true); in ProcessBlock()
822 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock()
823 CondBr->eraseFromParent(); in ProcessBlock()
839 if (CondBr && CondConst && TryToUnfoldSelect(CondCmp, BB)) in ProcessBlock()
1836 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in TryToUnfoldSelect() local
1840 if (!CondBr || !CondBr->isConditional() || !CondLHS || in TryToUnfoldSelect()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp204 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in updatePredecessorProfileMetadata() local
205 if (!CondBr) in updatePredecessorProfileMetadata()
210 if (!CondBr->extractProfMetadata(TrueWeight, FalseWeight)) in updatePredecessorProfileMetadata()
1122 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() local
1124 if (CondBr && CondConst) { in ProcessBlock()
1128 assert(CondBr->isConditional() && "Threading on unconditional terminator"); in ProcessBlock()
1136 CondConst, CondBr); in ProcessBlock()
1140 BasicBlock *ToRemoveSucc = CondBr->getSuccessor(ToRemove); in ProcessBlock()
1142 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock()
1143 CondBr->eraseFromParent(); in ProcessBlock()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DJumpThreading.cpp730 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() local
733 if (CondBr && CondConst && CondBr->isConditional() && PI != PE && in ProcessBlock()
756 CondBr->getSuccessor(ToRemove)->removePredecessor(BB, true); in ProcessBlock()
757 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock()
758 CondBr->eraseFromParent(); in ProcessBlock()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86SpeculativeLoadHardening.cpp710 for (auto *CondBr : CondBrs) in tracePredStateThroughCFG() local
711 ++SuccCounts[CondBr->getOperand(0).getMBB()]; in tracePredStateThroughCFG()
775 for (auto *CondBr : CondBrs) { in tracePredStateThroughCFG() local
776 MachineBasicBlock &Succ = *CondBr->getOperand(0).getMBB(); in tracePredStateThroughCFG()
779 X86::CondCode Cond = X86::getCondFromBranchOpc(CondBr->getOpcode()); in tracePredStateThroughCFG()
783 BuildCheckingBlockForSuccAndConds(MBB, Succ, SuccCount, CondBr, UncondBr, in tracePredStateThroughCFG()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dir_builder_mixin.h90 llvm::BranchInst* CondBr(Args&&... args) { in CondBr() function
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter.cc390 CondBr(ExtractValue(ret_value, 1, "success"), loop_exit_bb, loop_body_bb); in EmitAtomicOperationUsingCAS()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIInstrInfo.cpp1740 MachineInstr *CondBr = in insertBranch() local
1745 preserveCondRegFlags(CondBr->getOperand(1), Cond[1]); in insertBranch()
1754 MachineInstr *CondBr = in insertBranch() local
1760 MachineOperand &CondReg = CondBr->getOperand(1); in insertBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp7197 auto *CondBr = BranchInst::Create(State.CFG.PrevBB, nullptr, ConditionBit); in execute() local
7198 CondBr->setSuccessor(0, nullptr); in execute()
7199 ReplaceInstWithInst(CurrentTerminator, CondBr); in execute()
/external/tensorflow/tensorflow/compiler/xla/service/
Delemental_ir_emitter.cc1797 CondBr(ICmpULT(source_multi_index[concat_dim], concat_dim_size), in EmitElementalConcatenate()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc2366 CondBr(while_predicate, body_bb, exit_bb); in HandleWhile()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.td609 let Name = "CondBr"; let PredicateMethod = "isCondBr";
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCInstrInfo.td718 let Name = "CondBr"; let PredicateMethod = "isCondBr";