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.
IMO this condition is a bit awkward, but I can't suggest a better one. I think to be thorough we might want to raise this up to a cmake option next to LLVM_OPTIMIZED_TABLEGEN, but I won't insist on it.
I use a release build, and I appreciate comments in other table generated files, but I have never debugged DAG isel matchers.