We create a ConstantDataSequential (ConstantDataArray or ConstantDataVector) to avoid creating a Constant for each element in an array of constants. But them in AsmPrinter, we do create a ConstantFP for each element in the ConstantDataSequential. This triggers excessive memory use when generating large global FP constants.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Seems straightforward enough. LGTM.
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | ||
---|---|---|
2130–2131 ↗ | (On Diff #137660) | I'm not sure the "FromAPFloat" adds much here, maybe we should just overload emitGlobalConstantFP? |