Lines Matching defs:JumpThreading
1 //===- JumpThreading.cpp - Thread control through conditional blocks ------===//
13 #include "llvm/Transforms/Scalar/JumpThreading.h"
103 cl::desc("Print the LazyValueInfo cache after JumpThreading"), cl::init(false),
108 cl::desc("Allow JumpThreading to thread across loop headers, for testing"),
129 class JumpThreading : public FunctionPass {
135 JumpThreading(int T = -1) : FunctionPass(ID), Impl(T) {
156 char JumpThreading::ID = 0;
158 INITIALIZE_PASS_BEGIN(JumpThreading, "jump-threading",
164 INITIALIZE_PASS_END(JumpThreading, "jump-threading",
169 return new JumpThreading(Threshold);
297 bool JumpThreading::runOnFunction(Function &F) {
377 // JumpThreading must not processes blocks unreachable from entry. It's a
380 assert(DTU && "DTU isn't passed into JumpThreading before using it.");
381 assert(DTU->hasDomTree() && "JumpThreading relies on DomTree to proceed.");