Lines Matching defs:Cond
74 void shrinkWrapCI(CallInst *CI, Value *Cond);
132 Value *Cond = nullptr;
143 Cond = createOrCond(CI, CmpInst::FCMP_OLT, -1.0f, CmpInst::FCMP_OGT, 1.0f);
154 Cond = createOrCond(CI, CmpInst::FCMP_OEQ, INFINITY, CmpInst::FCMP_OEQ,
163 Cond = createCond(CI, CmpInst::FCMP_OLT, 1.0f);
171 Cond = createCond(CI, CmpInst::FCMP_OLT, 0.0f);
177 shrinkWrapCI(CI, Cond);
184 Value *Cond = nullptr;
202 Cond = generateTwoRangeCond(CI, Func);
209 Cond = generateOneRangeCond(CI, Func);
215 shrinkWrapCI(CI, Cond);
222 Value *Cond = nullptr;
227 // Overall Cond: (x <= -1 || x >= 1)
232 Cond = createOrCond(CI, CmpInst::FCMP_OLE, -1.0f, CmpInst::FCMP_OGE, 1.0f);
237 // Overall Cond: (x <= 0)
251 Cond = createCond(CI, CmpInst::FCMP_OLE, 0.0f);
256 // Overall Cond: (x <= -1)
261 Cond = createCond(CI, CmpInst::FCMP_OLE, -1.0f);
269 Cond = generateCondForPow(CI, Func);
270 if (Cond == nullptr)
277 assert(Cond && "performCallErrors should not see an empty condition");
278 shrinkWrapCI(CI, Cond);
401 // Cond is: (y > 127)
404 // Cond: (x <= 0 || y > 128)
406 // Cond: (x <= 0 || y > 64)
408 // Cond: (x <= 0 || y > 32)
467 void LibCallsShrinkWrap::shrinkWrapCI(CallInst *CI, Value *Cond) {
468 assert(Cond != nullptr && "ShrinkWrapCI is not expecting an empty call inst");
473 SplitBlockAndInsertIfThen(Cond, CI, false, BranchWeights, &DTU);