Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
ghx-label-12
Description
From https://github.com/apache/impala/blob/4.2.0/be/CMakeLists.txt#L298-L300
We enable basic optimizations (-O1) to reduce the IR size and speed up runtime JIT. Empirically, the runtime JIT produces slightly better code when starting with IR that was optimized at -O1. Higher optimization levels tend to bloat the code.
This evaluation was done with LLVM 3.3. We're now on LLVM 5, and this evaluation may no longer hold. Revisit whether this makes sense or whether another option (O2, Os, O3) may make more sense.
Attachments
Attachments
Issue Links
- relates to
-
IMPALA-5081 Expose IR optimization level via query option
- Resolved