JIT: Optimize generated functions earlier to lower memory usage - Mailing list pgsql-hackers

From Soumyadeep Chakraborty
Subject JIT: Optimize generated functions earlier to lower memory usage
Date
Msg-id CAE-ML+_OE4-sHvn0AA_qakc5qkZvQvainxwb1ztuuT67SPMegw@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hello,

This is to introduce a patch to lower the memory footprint of JITed
code by optimizing functions at the function level (i.e. with
function-level optimization passes) as soon as they are generated.
This addresses the code comment inside llvm_optimize_module():

/*
 * Do function level optimization. This could be moved to the point where
 * functions are emitted, to reduce memory usage a bit.
 */
 LLVMInitializeFunctionPassManager(llvm_fpm);

 --
 Soumyadeep (Deep)
Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Two pg_rewind patches (auto generate recovery conf and ensureclean shutdown)
Next
From: Robert Haas
Date:
Subject: Re: How to retain lesser paths at add_path()?