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
- Build Status
Buildable 15851 Build 15851: arc lint + arc unit
Event Timeline
Comment Actions
Seems straightforward enough. LGTM.
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | ||
---|---|---|
2130–2131 | I'm not sure the "FromAPFloat" adds much here, maybe we should just overload emitGlobalConstantFP? |
I'm not sure the "FromAPFloat" adds much here, maybe we should just overload emitGlobalConstantFP?