Lines Matching refs:LoopUnswitch
170 class LoopUnswitch : public LoopPass { class
206 explicit LoopUnswitch(bool Os = false, bool hasBranchDivergence = false) in LoopUnswitch() function in __anon33c827c70111::LoopUnswitch
387 char LoopUnswitch::ID = 0;
389 INITIALIZE_PASS_BEGIN(LoopUnswitch, "loop-unswitch", "Unswitch loops",
396 INITIALIZE_PASS_END(LoopUnswitch, "loop-unswitch", "Unswitch loops", in INITIALIZE_PASS_DEPENDENCY()
400 return new LoopUnswitch(Os, hasBranchDivergence); in INITIALIZE_PASS_DEPENDENCY()
518 bool LoopUnswitch::runOnLoop(Loop *L, LPPassManager &LPM_Ref) { in runOnLoop()
559 bool LoopUnswitch::isUnreachableDueToPreviousUnswitching(BasicBlock *BB) { in isUnreachableDueToPreviousUnswitching()
629 bool LoopUnswitch::processCurrentLoop() { in processCurrentLoop()
877 bool LoopUnswitch::UnswitchIfProfitable(Value *LoopCond, Constant *Val, in UnswitchIfProfitable()
929 void LoopUnswitch::EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val, in EmitPreheaderBranchOnCondition()
996 void LoopUnswitch::UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val, in UnswitchTrivialCondition()
1054 bool LoopUnswitch::TryTrivialLoopUnswitch(bool &Changed) { in TryTrivialLoopUnswitch()
1210 void LoopUnswitch::SplitExitEdges(Loop *L, in SplitExitEdges()
1228 void LoopUnswitch::UnswitchNontrivialCondition(Value *LIC, Constant *Val, in UnswitchNontrivialCondition()
1431 void LoopUnswitch::RewriteLoopBodyWithConditionConstant(Loop *L, Value *LIC, in RewriteLoopBodyWithConditionConstant()
1571 void LoopUnswitch::SimplifyCode(std::vector<Instruction*> &Worklist, Loop *L) { in SimplifyCode()
1649 Value *LoopUnswitch::SimplifyInstructionWithNotEqual(Instruction *Inst, in SimplifyInstructionWithNotEqual()