Home
last modified time | relevance | path

Searched refs:comesBefore (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/IR/
H A DBasicBlockTest.cpp217 EXPECT_TRUE(I1->comesBefore(I2)); in TEST_F()
219 EXPECT_TRUE(I2->comesBefore(I3)); in TEST_F()
230 EXPECT_TRUE(I2->comesBefore(I3)); in TEST_F()
236 EXPECT_TRUE(I1->comesBefore(I2)); in TEST_F()
237 EXPECT_TRUE(I2->comesBefore(I3)); in TEST_F()
245 EXPECT_TRUE(I2->comesBefore(I1)); in TEST_F()
246 EXPECT_TRUE(I1->comesBefore(I3)); in TEST_F()
254 EXPECT_TRUE(I1->comesBefore(I2)); in TEST_F()
262 EXPECT_TRUE(I1->comesBefore(I3)); in TEST_F()
269 EXPECT_TRUE(I1->comesBefore(I2)); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DAssumeBundleBuilder.cpp365 return LHS->comesBefore(RHS); in buildMapping()
487 (InsertPt->comesBefore(I) || InsertPt == I)) in mergeRange()
494 if (InsertPt->comesBefore(*Begin)) in mergeRange()
527 for (; (*LastSplit)->comesBefore(&*It); ++LastSplit) in mergeAssumes()
H A DCodeMoverUtils.cpp101 return InstA->comesBefore(InstB); in domTreeLevelBefore()
H A DPredicateInfo.cpp115 return cast<Instruction>(A)->comesBefore(cast<Instruction>(B)); in valueComesBefore()
H A DSimplifyCFG.cpp1142 assert(UI->getParent() == BB && BonusInst.comesBefore(UI) && in CloneInstructionsIntoPredecessorBlockAndUpdateSSAUses()
3649 return UI->getParent() == BB && I.comesBefore(UI); in FoldBranchToCommonDest()
6944 if (Use->getParent() != I->getParent() || Use == I || Use->comesBefore(I)) in passingValueIsAlwaysUndefined()
H A DScalarEvolutionExpander.cpp75 (&*IP == CI || CI->comesBefore(&*IP))) { in ReuseOrCreateCast()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp378 if (Write->comesBefore(Read)) in RecordMemoryOps()
386 bool BaseFirst = Base->comesBefore(Offset); in RecordMemoryOps()
396 if (Dominator->comesBefore(Before)) in RecordMemoryOps()
712 return A->comesBefore(B); in InsertParallelMACs()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInstructionPrecedenceTracking.cpp66 return MaybeFirstSpecial && MaybeFirstSpecial->comesBefore(Insn); in isPreceededBySpecialInstruction()
H A DCFG.cpp253 if (A == B || A->comesBefore(B)) in isPotentiallyReachable()
H A DCaptureTracking.cpp185 if (I->comesBefore(EarliestCapture)) in captured()
H A DStackLifetime.cpp55 return L->comesBefore(R); in isAliveAfter()
H A DIVDescriptors.cpp962 return A->comesBefore(B); in isFirstOrderRecurrence()
/llvm-project-15.0.7/llvm/lib/IR/
H A DDominators.cpp169 return Def->comesBefore(User); in dominates()
332 return Def->comesBefore(UserInst); in dominates()
H A DBasicBlock.cpp517 assert((!Prev || Prev->comesBefore(&I)) && in validateInstrOrdering()
H A DInstruction.cpp110 bool Instruction::comesBefore(const Instruction *Other) const { in comesBefore() function in Instruction
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp600 if (!IM->comesBefore(I)) { in reorder()
718 if (BarrierMemoryInstr && BarrierMemoryInstr->comesBefore(ChainInstr)) in getVectorizablePrefix()
725 if (BarrierMemoryInstr && BarrierMemoryInstr->comesBefore(MemInstr)) in getVectorizablePrefix()
744 if (ChainInstr->comesBefore(MemInstr) || in getVectorizablePrefix()
749 if (MemInstr->comesBefore(ChainInstr) || in getVectorizablePrefix()
777 assert(BarrierMemoryInstr->comesBefore(ChainInstr)); in getVectorizablePrefix()
H A DVectorCombine.cpp1017 if (LastCheckedInst->comesBefore(UI)) { in scalarizeLoadExtract()
H A DSLPVectorizer.cpp3050 ScheduleStart->comesBefore(ScheduleEnd) && in verify()
6785 return B->comesBefore(A); in getSpillCost()
7463 if (LastInst->comesBefore(I)) in setInsertPointAfterBundle()
7496 if (I->comesBefore(FirstInst)) in setInsertPointAfterBundle()
8843 if (II->getParent() == NewI->getParent() && II->comesBefore(NewI)) in vectorizeTree()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp167 return A->comesBefore(B); in operator ()()
557 assert(Base->comesBefore(In) && "Base should come before In"); in createLoadGroups()
567 if (I->getParent() == Parent && Base->comesBefore(I)) in createLoadGroups()
1417 bool MoveUp = (To != Block.end() && To->comesBefore(&In)); in isSafeToMoveBeforeInBB()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstruction.h150 bool comesBefore(const Instruction *Other) const;
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDFAJumpThreading.cpp1165 return LHS.second->comesBefore(RHS.second); in updateDefMap()
1166 return LHS.first->comesBefore(RHS.first); in updateDefMap()
H A DMergeICmps.cpp249 return (Inst->getParent() != LI->getParent() || !Inst->comesBefore(LI)) && in canSinkBCECmpInst()
H A DGVN.cpp1125 Instruction *EarlierLoad = L1->comesBefore(L2) ? L1 : L2; in tryToConvertLoadOfPtrSelect()
1905 if (!Current->getMemoryInst()->comesBefore(NewS)) { in processAssumeIntrinsic()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DStackColoring.cpp962 if (From->comesBefore(To)) in remapInstructions()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp4102 [](auto *A, auto *B) { return B->comesBefore(A); }); in TryToSinkInstruction()

12