Joe McDonnell has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/21721 )

Change subject: IMPALA-13308: Build GCC with profile guided optimization
......................................................................

IMPALA-13308: Build GCC with profile guided optimization

GCC has an option to build itself using profile guided
optimization. It collects a profile while building itself
and then uses that to optimize the binary. This seems to
be enough to speed up Impala compilation by about 5%:

Current toolchain GCC (LTO):
real    4m58.416s
user    70m41.989s
sys     6m41.961s

GCC with PGO, no LTO:
real    4m45.360s
user    67m12.081s
sys     6m40.376s

LTO shows little improvement over the PGO numbers, so this
switches back to a non-LTO build to save build time. Avoiding
LTO and using a slightly faster GCC reduces the total build
time by 35 minutes on an internal job.

Testing:
 - Ran a build, then used it to build Impala

Change-Id: I9f5850999b05207ddc008d839de2783579eaaf31
Reviewed-on: http://gerrit.cloudera.org:8080/21721
Reviewed-by: Michael Smith <[email protected]>
Tested-by: Joe McDonnell <[email protected]>
---
M source/gcc/build.sh
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Michael Smith: Looks good to me, approved
  Joe McDonnell: Verified

--
To view, visit http://gerrit.cloudera.org:8080/21721
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: native-toolchain
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9f5850999b05207ddc008d839de2783579eaaf31
Gerrit-Change-Number: 21721
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>

Reply via email to