Lines Matching refs:Invariants
124 TinyPtrVector<Value *> Invariants; in collectHomogenousInstGraphLoopInvariants() local
143 Invariants.push_back(OpV); in collectHomogenousInstGraphLoopInvariants()
159 return Invariants; in collectHomogenousInstGraphLoopInvariants()
199 ArrayRef<Value *> Invariants, in buildPartialUnswitchConditionalBranch() argument
205 Value *Cond = Direction ? IRB.CreateOr(Invariants) : in buildPartialUnswitchConditionalBranch()
206 IRB.CreateAnd(Invariants); in buildPartialUnswitchConditionalBranch()
434 TinyPtrVector<Value *> Invariants; in unswitchTrivialBranch() local
441 Invariants.push_back(BI.getCondition()); in unswitchTrivialBranch()
445 Invariants = collectHomogenousInstGraphLoopInvariants(L, *CondInst, LI); in unswitchTrivialBranch()
446 if (Invariants.empty()) { in unswitchTrivialBranch()
489 for (Value *Invariant : Invariants) { in unswitchTrivialBranch()
491 if (Invariant != Invariants.back()) in unswitchTrivialBranch()
566 buildPartialUnswitchConditionalBranch(*OldPH, Invariants, ExitDirection, in unswitchTrivialBranch()
612 for (Value *Invariant : Invariants) in unswitchTrivialBranch()
2023 Loop &L, Instruction &TI, ArrayRef<Value *> Invariants, in unswitchNontrivialInvariants() argument
2040 SI || (BI->getCondition() == Invariants[0] && !PartiallyInvariant); in unswitchNontrivialInvariants()
2042 assert(Invariants.size() == 1 && in unswitchNontrivialInvariants()
2291 *SplitBB, Invariants, Direction, *ClonedPH, *LoopPH, L, MSSAU); in unswitchNontrivialInvariants()
2293 buildPartialUnswitchConditionalBranch(*SplitBB, Invariants, Direction, in unswitchNontrivialInvariants()
2365 FullUnswitch || (Invariants.size() == 1) || PartiallyInvariant; in unswitchNontrivialInvariants()
2373 for (Value *Invariant : Invariants) in unswitchNontrivialInvariants()
2737 TinyPtrVector<Value *> Invariants = in unswitchBestCondition() local
2739 if (Invariants.empty()) in unswitchBestCondition()
2742 UnswitchCandidates.push_back({BI, std::move(Invariants)}); in unswitchBestCondition()
2919 ArrayRef<Value *> Invariants = TerminatorAndInvariants.second; in unswitchBestCondition() local
2922 TI, /*FullUnswitch*/ !BI || (Invariants.size() == 1 && in unswitchBestCondition()
2923 Invariants[0] == BI->getCondition())); in unswitchBestCondition()
2944 BestUnswitchInvariants = Invariants; in unswitchBestCondition()