Lines Matching defs:CanEvaluateShifted
56 /// CanEvaluateShifted - See if we can compute the specified value, but shifted
68 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift,
112 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC) &&
113 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC);
165 return CanEvaluateShifted(SI->getTrueValue(), NumBits, isLeftShift, IC) &&
166 CanEvaluateShifted(SI->getFalseValue(), NumBits, isLeftShift, IC);
174 if (!CanEvaluateShifted(PN->getIncomingValue(i), NumBits, isLeftShift,IC))
181 /// GetShiftedValue - When CanEvaluateShifted returned true for an expression,
202 default: llvm_unreachable("Inconsistency with CanEvaluateShifted");
215 // We only accept shifts-by-a-constant in CanEvaluateShifted.
256 // We only accept shifts-by-a-constant in CanEvaluateShifted.
320 CanEvaluateShifted(Op0, Op1->getZExtValue(), isLeftShift, *this)) {