reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
795 if (C == 0) 799 if (C == 1) 803 if (C.isPowerOf2()) 805 DAG.getConstant(C.logBase2(), DL, ShiftTy)); 807 unsigned BitWidth = C.getBitWidth(); 808 APInt Floor = APInt(BitWidth, 1) << C.logBase2(); 809 APInt Ceil = C.isNegative() ? APInt(BitWidth, 0) : 810 APInt(BitWidth, 1) << C.ceilLogBase2(); 815 if ((C - Floor).ule(Ceil - C)) { 815 if ((C - Floor).ule(Ceil - C)) { 817 SDValue Op1 = genConstMult(X, C - Floor, DL, VT, ShiftTy, DAG); 824 SDValue Op1 = genConstMult(X, Ceil - C, DL, VT, ShiftTy, DAG);