Lines Matching refs:Result
42 static bool HasAddOverflow(ConstantInt *Result,
46 return Result->getValue().ult(In1->getValue());
49 return Result->getValue().sgt(In1->getValue());
50 return Result->getValue().slt(In1->getValue());
53 /// AddWithOverflow - Compute Result = In1+In2, returning true if the result
55 static bool AddWithOverflow(Constant *&Result, Constant *In1,
57 Result = ConstantExpr::getAdd(In1, In2);
62 if (HasAddOverflow(ExtractElement(Result, Idx),
71 return HasAddOverflow(cast<ConstantInt>(Result),
76 static bool HasSubOverflow(ConstantInt *Result,
80 return Result->getValue().ugt(In1->getValue());
83 return Result->getValue().slt(In1->getValue());
85 return Result->getValue().sgt(In1->getValue());
88 /// SubWithOverflow - Compute Result = In1-In2, returning true if the result
90 static bool SubWithOverflow(Constant *&Result, Constant *In1,
92 Result = ConstantExpr::getSub(In1, In2);
97 if (HasSubOverflow(ExtractElement(Result, Idx),
106 return HasSubOverflow(cast<ConstantInt>(Result),
113 /// TrueIfSigned if the result of the comparison is true when the input value is
287 // If the result is undef for this element, ignore it.
298 // If we can't compute the result for any of the elements, we have to give
664 // the result to fold to a constant!
754 // (x /u C1) <u C2. Simply casting the operands and result won't
805 // to the same result value.
1157 // result is always true or false now.
1616 Value *Result = Builder->CreateICmpSGT(LHSCIOp, NegOne, ICI.getName());
1620 return ReplaceInstUsesWith(ICI, Result);
1623 return BinaryOperator::CreateNot(Result);
1680 // result and the overflow bit.
1696 Value *Add = Builder->CreateExtractValue(Call, 0, "sadd.result");
1699 // The inner add was the result of the narrow add, zero extended to the
1700 // wider type. Replace it with the result computed by the intrinsic.
1964 // If the LHS is 1 << x, and we know the result is a power of 2 like 8,
1973 // If the LHS is 8 >>u x, and we know the result is a power of 2 like 1,
2001 // If the LHS is 1 << x, and we know the result is a power of 2 like 8,
2010 // If the LHS is 8 >>u x, and we know the result is a power of 2 like 1,