[LLVMdev] Removing the constant pool
Evan Cheng
evan.cheng at apple.com
Thu Jan 7 16:47:02 PST 2010
Is that really sufficient? See X86ISelLowering.cpp, look for addLegalFPImmediate. Usually targets have to tell legalizer what fp immediates are legl.
Evan
On Jan 5, 2010, at 8:38 AM, Anton Korobeynikov wrote:
> Hello
>
>> 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
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list