search for: convertofloat

Displaying 2 results from an estimated 2 matches for "convertofloat".

Did you mean: converttofloat
2015 Jan 14
2
[LLVMdev] Bug in InsertElement constant propagation?
...nt value is changed while folding insertElement into a constant expression. In Constant.cpp line 902, we convert the APFloat into float then convert it back when creating the ConstantDataArray. This causes the float value to be changed. I'm not entirely positive why the float value returned by converToFloat has a different memory representation than the original int value, there must be a C++ rule that I'm missing. d if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) { if (CFP->getType()->isFloatTy()) { SmallVector<float, 16> Elts; for (unsigned i = 0, e = V...
2015 Jan 14
2
[LLVMdev] Bug in InsertElement constant propagation?
...olding insertElement into a constant expression. > > In Constant.cpp line 902, we convert the APFloat into float then > convert it back when creating the ConstantDataArray. This causes the > float value to be changed. I'm not entirely positive why the float > value returned by converToFloat has a different memory representation > than the original int value, there must be a C++ rule that I'm missing. > > d > > if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) { > > if (CFP->getType()->isFloatTy()) { > > SmallVector<float...