[all-commits] [llvm/llvm-project] a63eed: [CMake] -gen-dag-isel: add -omit-comments if neith...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri May 15 14:03:27 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a63eedd049bfde97f1d73caa61d27df600501c54
https://github.com/llvm/llvm-project/commit/a63eedd049bfde97f1d73caa61d27df600501c54
Author: Fangrui Song <maskray at google.com>
Date: 2020-05-15 (Fri, 15 May 2020)
Changed paths:
M llvm/cmake/modules/TableGen.cmake
Log Message:
-----------
[CMake] -gen-dag-isel: add -omit-comments if neither Debug nor RelWithDebInfo
Omitting comments can make the output much smaller. Size/time impact on
my machine:
* lib/Target/AArch64/AArch64GenDAGISel.inc, 10MiB (8.89s) -> 5MiB (3.20s)
* lib/Target/X86/X86GenDAGISel.inc, 20MiB (6.48s) -> 8.5MiB (4.18s)
In total, this change decreases lib/Target/*/*GenDAGISel.inc from
71.4MiB to 30.1MiB.
As rnk suggested, we can consider an option next to LLVM_OPTIMIZED_TABLEGEN
once we have more needs like this.
Reviewed By: thakis
Differential Revision: https://reviews.llvm.org/D78884
More information about the All-commits
mailing list