[Patch] Avoid conversion to float when creating ConstantDataArray/ConstantDataVector

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Feb 5 13:23:20 PST 2015


This needs a testcase.

In the end, was it decided that cast of floats have to preserve exact
bit parterns? Should we make that explicit in the language reference?

On 28 January 2015 at 11:15, Raoux, Thomas F <thomas.f.raoux at intel.com> wrote:
> Hi,
>
> Could someone review (and possibly commit) this patch related to ConstantDataArray/ConstantDataVector?
>
> This addresses a bug discussed in this thread: http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-January/080575.html
>
> To avoid conversion to float and potential change of the constant I added new constructors for float types for ConstantDataArray/ConstantDataVector.
>
> Cheers,
> Thomas
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list