[LLVMdev] Bug in InsertElement constant propagation?

Raoux, Thomas F thomas.f.raoux at intel.com
Thu Jan 15 01:29:38 PST 2015


I don't see a way to create a ConstantDataVector from Constant or form APFloat though. Did I oversee that? 
Is the solution to had a new get function in ConstantDataVector to allow that? Any hint on what would be the right fix otherwise?

Thomas

-----Original Message-----
From: Jonathan Roelofs [mailto:jonathan at codesourcery.com] 
Sent: Wednesday, January 14, 2015 10:30 AM
To: Raoux, Thomas F; LLVM Developers Mailing List
Subject: Re: [LLVMdev] Bug in InsertElement constant propagation?



On 1/14/15 11:12 AM, Raoux, Thomas F wrote:
> Ha here is what I was missing. Thanks Jon. It still seems to me that the transformation of LLVM IR is invalid is that right?
I don't know if IR is required to preserve NaN bit patterns, but ISTM that it would be better if it did.
> I assume we shouldn't be converting APFloat to float in order to avoid such problems?
Yes, I think that's the correct fix.

Jon

--
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded




More information about the llvm-dev mailing list