Home
last modified time | relevance | path

Searched refs:TrueDest (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp262 BasicBlock *TrueDest,
916 BasicBlock *TrueDest, in emitPreheaderBranchOnCondition() argument
921 assert(TrueDest != FalseDest && "Branch targets should be different"); in emitPreheaderBranchOnCondition()
931 std::swap(TrueDest, FalseDest); in emitPreheaderBranchOnCondition()
942 IRBuilder<>(OldBranch).CreateCondBr(BranchVal, TrueDest, FalseDest, TI); in emitPreheaderBranchOnCondition()
954 if (TrueDest != OldBranchSucc) in emitPreheaderBranchOnCondition()
955 Updates.push_back({DominatorTree::Insert, OldBranchParent, TrueDest}); in emitPreheaderBranchOnCondition()
960 if (OldBranchSucc != TrueDest && OldBranchSucc != FalseDest) { in emitPreheaderBranchOnCondition()
DLICM.cpp597 BasicBlock *TrueDest = BI->getSuccessor(0); in registerPossiblyHoistableBranch() local
599 if (!CurLoop->contains(TrueDest) || !CurLoop->contains(FalseDest) || in registerPossiblyHoistableBranch()
600 TrueDest == FalseDest) in registerPossiblyHoistableBranch()
609 TrueDestSucc.insert(succ_begin(TrueDest), succ_end(TrueDest)); in registerPossiblyHoistableBranch()
614 } else if (FalseDestSucc.count(TrueDest)) { in registerPossiblyHoistableBranch()
615 CommonSucc = TrueDest; in registerPossiblyHoistableBranch()
625 Function *F = TrueDest->getParent(); in registerPossiblyHoistableBranch()
713 BasicBlock *TrueDest = BI->getSuccessor(0); in getOrCreateHoistedBlock() local
734 BasicBlock *HoistTrueDest = CreateHoistedBlock(TrueDest); in getOrCreateHoistedBlock()
DLoopPredication.cpp860 BasicBlock *TrueDest = BI->getSuccessor(0); in parseLoopLatchICmp() local
862 (TrueDest == L->getHeader() || BI->getSuccessor(1) == L->getHeader()) && in parseLoopLatchICmp()
876 if (TrueDest != L->getHeader()) in parseLoopLatchICmp()
DJumpThreading.cpp2974 BasicBlock *TrueDest = BI->getSuccessor(0); in threadGuard() local
2995 BasicBlock *PredUnguardedBlock = TrueDestIsSafe ? TrueDest : FalseDest; in threadGuard()
2996 BasicBlock *PredGuardedBlock = FalseDestIsSafe ? TrueDest : FalseDest; in threadGuard()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp259 BasicBlock *TrueDest,
934 BasicBlock *TrueDest, in EmitPreheaderBranchOnCondition() argument
939 assert(TrueDest != FalseDest && "Branch targets should be different"); in EmitPreheaderBranchOnCondition()
949 std::swap(TrueDest, FalseDest); in EmitPreheaderBranchOnCondition()
960 IRBuilder<>(OldBranch).CreateCondBr(BranchVal, TrueDest, FalseDest, TI); in EmitPreheaderBranchOnCondition()
972 if (TrueDest != OldBranchSucc) in EmitPreheaderBranchOnCondition()
973 Updates.push_back({DominatorTree::Insert, OldBranchParent, TrueDest}); in EmitPreheaderBranchOnCondition()
978 if (OldBranchSucc != TrueDest && OldBranchSucc != FalseDest) { in EmitPreheaderBranchOnCondition()
DLICM.cpp602 BasicBlock *TrueDest = BI->getSuccessor(0); in registerPossiblyHoistableBranch() local
604 if (!CurLoop->contains(TrueDest) || !CurLoop->contains(FalseDest) || in registerPossiblyHoistableBranch()
605 TrueDest == FalseDest) in registerPossiblyHoistableBranch()
614 TrueDestSucc.insert(succ_begin(TrueDest), succ_end(TrueDest)); in registerPossiblyHoistableBranch()
619 } else if (FalseDestSucc.count(TrueDest)) { in registerPossiblyHoistableBranch()
620 CommonSucc = TrueDest; in registerPossiblyHoistableBranch()
630 Function *F = TrueDest->getParent(); in registerPossiblyHoistableBranch()
718 BasicBlock *TrueDest = BI->getSuccessor(0); in getOrCreateHoistedBlock() local
739 BasicBlock *HoistTrueDest = CreateHoistedBlock(TrueDest); in getOrCreateHoistedBlock()
DLoopPredication.cpp858 BasicBlock *TrueDest = BI->getSuccessor(0); in parseLoopLatchICmp() local
860 (TrueDest == L->getHeader() || BI->getSuccessor(1) == L->getHeader()) && in parseLoopLatchICmp()
874 if (TrueDest != L->getHeader()) in parseLoopLatchICmp()
DJumpThreading.cpp2697 BasicBlock *TrueDest = BI->getSuccessor(0); in ThreadGuard() local
2718 BasicBlock *PredUnguardedBlock = TrueDestIsSafe ? TrueDest : FalseDest; in ThreadGuard()
2719 BasicBlock *PredGuardedBlock = FalseDestIsSafe ? TrueDest : FalseDest; in ThreadGuard()
DIndVarSimplify.cpp1833 bool TrueDest) { in calculatePostIncRange() argument
1841 TrueDest ? Pred : CmpInst::getInversePredicate(Pred); in calculatePostIncRange()
/external/llvm/lib/CodeGen/
DImplicitNullChecks.cpp352 NotNullSucc = MBP.TrueDest; in analyzeBlockForNullChecks()
356 NullSucc = MBP.TrueDest; in analyzeBlockForNullChecks()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DImplicitNullChecks.cpp491 NotNullSucc = MBP.TrueDest; in analyzeBlockForNullChecks()
495 NullSucc = MBP.TrueDest; in analyzeBlockForNullChecks()
/external/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp252 BasicBlock *TrueDest,
784 BasicBlock *TrueDest, in EmitPreheaderBranchOnCondition() argument
797 std::swap(TrueDest, FalseDest); in EmitPreheaderBranchOnCondition()
802 BranchInst *BI = BranchInst::Create(TrueDest, FalseDest, BranchVal, InsertPt); in EmitPreheaderBranchOnCondition()
/external/llvm-project/llvm/lib/CodeGen/
DImplicitNullChecks.cpp585 NotNullSucc = MBP.TrueDest; in analyzeBlockForNullChecks()
589 NullSucc = MBP.TrueDest; in analyzeBlockForNullChecks()
/external/llvm/include/llvm/Target/
DTargetInstrInfo.h493 MachineBasicBlock *TrueDest; member
504 RHS(MachineOperand::CreateImm(0)), TrueDest(nullptr), in MachineBranchPredicate()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp2675 BasicBlock *TrueDest = BI->getSuccessor(0); in FoldBranchToCommonDest() local
2677 if (TrueDest == BB || FalseDest == BB) in FoldBranchToCommonDest()
2699 if (PBI->getSuccessor(0) == TrueDest) { in FoldBranchToCommonDest()
2706 } else if (PBI->getSuccessor(1) == TrueDest) { in FoldBranchToCommonDest()
2713 if (PBI->getSuccessor(0) != TrueDest && PBI->getSuccessor(1) != TrueDest) in FoldBranchToCommonDest()
2797 AddPredecessorToBlock(TrueDest, PredBlock, BB, MSSAU); in FoldBranchToCommonDest()
2798 PBI->setSuccessor(0, TrueDest); in FoldBranchToCommonDest()
2831 if (PBI->getSuccessor(0) == TrueDest) { in FoldBranchToCommonDest()
2863 MSSAU->changeCondBranchToUnconditionalTo(PBI, TrueDest); in FoldBranchToCommonDest()
2866 BranchInst *New_PBI = BranchInst::Create(TrueDest, PBI); in FoldBranchToCommonDest()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp2269 BasicBlock *TrueDest = BI->getSuccessor(0); in FoldBranchToCommonDest() local
2271 if (TrueDest == BB || FalseDest == BB) in FoldBranchToCommonDest()
2293 if (PBI->getSuccessor(0) == TrueDest) { in FoldBranchToCommonDest()
2300 } else if (PBI->getSuccessor(1) == TrueDest) { in FoldBranchToCommonDest()
2307 if (PBI->getSuccessor(0) != TrueDest && PBI->getSuccessor(1) != TrueDest) in FoldBranchToCommonDest()
2391 AddPredecessorToBlock(TrueDest, PredBlock, BB); in FoldBranchToCommonDest()
2392 PBI->setSuccessor(0, TrueDest); in FoldBranchToCommonDest()
2427 if (PBI->getSuccessor(0) == TrueDest) { in FoldBranchToCommonDest()
2456 BranchInst *New_PBI = BranchInst::Create(TrueDest, PBI); in FoldBranchToCommonDest()
/external/llvm-project/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp2805 BasicBlock *TrueDest = BI->getSuccessor(0); in FoldBranchToCommonDest() local
2807 if (TrueDest == BB || FalseDest == BB) in FoldBranchToCommonDest()
2829 if (PBI->getSuccessor(0) == TrueDest) { in FoldBranchToCommonDest()
2836 } else if (PBI->getSuccessor(1) == TrueDest) { in FoldBranchToCommonDest()
2843 if (PBI->getSuccessor(0) != TrueDest && PBI->getSuccessor(1) != TrueDest) in FoldBranchToCommonDest()
2885 AddPredecessorToBlock(PBI->getSuccessor(0) == BB ? TrueDest : FalseDest, in FoldBranchToCommonDest()
2962 PBI->setSuccessor(0, TrueDest); in FoldBranchToCommonDest()
2994 if (PBI->getSuccessor(0) == TrueDest) { in FoldBranchToCommonDest()
3026 MSSAU->changeCondBranchToUnconditionalTo(PBI, TrueDest); in FoldBranchToCommonDest()
3029 BranchInst *New_PBI = BranchInst::Create(TrueDest, PBI); in FoldBranchToCommonDest()
DSimplifyIndVar.cpp1985 bool TrueDest) { in calculatePostIncRange() argument
1993 TrueDest ? Pred : CmpInst::getInversePredicate(Pred); in calculatePostIncRange()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp2116 BasicBlock *TrueDest; in visitBranchInst() local
2118 if (match(&BI, m_Br(m_Not(m_Value(X)), TrueDest, FalseDest)) && in visitBranchInst()
2138 TrueDest, FalseDest)) && in visitBranchInst()
2154 TrueDest, FalseDest)) && in visitBranchInst()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DTargetInstrInfo.h621 MachineBasicBlock *TrueDest = nullptr; member
/external/llvm-project/llvm/include/llvm/CodeGen/
DTargetInstrInfo.h628 MachineBasicBlock *TrueDest = nullptr; member
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4237 BasicBlock *TrueDest = getBasicBlock(Record[0]); in parseFunctionBody() local
4238 if (!TrueDest) in parseFunctionBody()
4242 I = BranchInst::Create(TrueDest); in parseFunctionBody()
4251 I = BranchInst::Create(TrueDest, FalseDest, Cond); in parseFunctionBody()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4852 BasicBlock *TrueDest = getBasicBlock(Record[0]); in parseFunctionBody() local
4853 if (!TrueDest) in parseFunctionBody()
4857 I = BranchInst::Create(TrueDest); in parseFunctionBody()
4866 I = BranchInst::Create(TrueDest, FalseDest, Cond); in parseFunctionBody()
/external/llvm-project/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp4339 BasicBlock *TrueDest = getBasicBlock(Record[0]); in parseFunctionBody() local
4340 if (!TrueDest) in parseFunctionBody()
4344 I = BranchInst::Create(TrueDest); in parseFunctionBody()
4353 I = BranchInst::Create(TrueDest, FalseDest, Cond); in parseFunctionBody()
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp392 MBP.TrueDest = LastInst->getOperand(1).getMBB(); in analyzeBranchPredicate()
393 assert(MBP.TrueDest && "expected!"); in analyzeBranchPredicate()

12