Home
last modified time | relevance | path

Searched refs:Op2C (Results 1 – 4 of 4) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp1034 ConstantFP *Op2C = dyn_cast<ConstantFP>(Op2); in optimizePow() local
1035 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()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp864 ConstantFP *Op2C = dyn_cast<ConstantFP>(Op2); in CallOptimizer() local
865 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()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp1351 } else if (ConstantInt *Op2C = dyn_cast<ConstantInt>(Operands[1])) { in ConstantFoldCall() local
1355 (int)Op2C->getZExtValue()))); in ConstantFoldCall()
1359 (int)Op2C->getZExtValue()))); in ConstantFoldCall()
/external/llvm/lib/Analysis/
DConstantFolding.cpp1746 } else if (auto *Op2C = dyn_cast<ConstantInt>(Operands[1])) { in ConstantFoldScalarCall() local
1750 (int)Op2C->getZExtValue()))); in ConstantFoldScalarCall()
1754 (int)Op2C->getZExtValue()))); in ConstantFoldScalarCall()
1758 (int)Op2C->getZExtValue()))); in ConstantFoldScalarCall()