Spilling constants to memory

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

"setOperationAction(ISD::ConstantFP, MVT::f32, Legal);"?

-Eli

Thanks Eli,
That did exactly what I wanted.

Micah