Searched refs:Op2C (Results 1 – 4 of 4) sorted by relevance
1034 ConstantFP *Op2C = dyn_cast<ConstantFP>(Op2); in optimizePow() local1035 if (!Op2C) in optimizePow()1038 if (Op2C->getValueAPF().isZero()) // pow(x, 0.0) -> 1.0 in optimizePow()1041 if (Op2C->isExactlyValue(0.5) && in optimizePow()1069 if (Op2C->isExactlyValue(1.0)) // pow(x, 1.0) -> x in optimizePow()1071 if (Op2C->isExactlyValue(2.0)) // pow(x, 2.0) -> x*x in optimizePow()1073 if (Op2C->isExactlyValue(-1.0)) // pow(x, -1.0) -> 1.0/x in optimizePow()1078 APFloat V = abs(Op2C->getValueAPF()); in optimizePow()1098 if (Op2C->isNegative()) in optimizePow()
864 ConstantFP *Op2C = dyn_cast<ConstantFP>(Op2); in CallOptimizer() local865 if (Op2C == 0) return 0; in CallOptimizer()867 if (Op2C->getValueAPF().isZero()) // pow(x, 0.0) -> 1.0 in CallOptimizer()870 if (Op2C->isExactlyValue(0.5)) { in CallOptimizer()887 if (Op2C->isExactlyValue(1.0)) // pow(x, 1.0) -> x in CallOptimizer()889 if (Op2C->isExactlyValue(2.0)) // pow(x, 2.0) -> x*x in CallOptimizer()891 if (Op2C->isExactlyValue(-1.0)) // pow(x, -1.0) -> 1.0/x in CallOptimizer()
1351 } else if (ConstantInt *Op2C = dyn_cast<ConstantInt>(Operands[1])) { in ConstantFoldCall() local1355 (int)Op2C->getZExtValue()))); in ConstantFoldCall()1359 (int)Op2C->getZExtValue()))); in ConstantFoldCall()
1746 } else if (auto *Op2C = dyn_cast<ConstantInt>(Operands[1])) { in ConstantFoldScalarCall() local1750 (int)Op2C->getZExtValue()))); in ConstantFoldScalarCall()1754 (int)Op2C->getZExtValue()))); in ConstantFoldScalarCall()1758 (int)Op2C->getZExtValue()))); in ConstantFoldScalarCall()