[LLVMdev] Removing the constant pool
evan.cheng at apple.com
Thu Jan 7 18:47:02 CST 2010
Is that really sufficient? See X86ISelLowering.cpp, look for addLegalFPImmediate. Usually targets have to tell legalizer what fp immediates are legl.
On Jan 5, 2010, at 8:38 AM, Anton Korobeynikov wrote:
>> I was wondering if it is possible to stop floating-point constants being converted to use the constant pool? As for our back-end we would like to be able to treat floating point constants the same way integer constants are treated instead of having to go via the constant pool.
> Yes, surely. Just make ISD::ConstantFP for given type legal and handle
> it during isel.
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the LLVMdev