Is there any way to get llvm to not spill floating point constants to memory but to keep them in registers, i.e. get rid of the constantPool and just generate ConstantFP instructions? Micah Villmow Systems Engineer Advanced Technology & Performance Advanced Micro Devices Inc. 4555 Great America Pkwy, Santa Clara, CA. 95054 P: 408-572-6219 F: 408-572-6596 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081007/eeb4a797/attachment.html>
On Tue, Oct 7, 2008 at 4:02 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:> Is there any way to get llvm to not spill floating point constants to memory > but to keep them in registers, i.e. get rid of the constantPool and just > generate ConstantFP instructions?"setOperationAction(ISD::ConstantFP, MVT::f32, Legal);"? -Eli
Thanks Eli, That did exactly what I wanted. Micah -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Eli Friedman Sent: Tuesday, October 07, 2008 5:31 PM To: LLVM Developers Mailing List Subject: Re: [LLVMdev] Spilling constants to memory On Tue, Oct 7, 2008 at 4:02 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:> Is there any way to get llvm to not spill floating point constants tomemory> but to keep them in registers, i.e. get rid of the constantPool andjust> generate ConstantFP instructions?"setOperationAction(ISD::ConstantFP, MVT::f32, Legal);"? -Eli _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev