RA: Use simple LRA for huge functions
authorVladimir N. Makarov <vmakarov@redhat.com>
Fri, 10 Feb 2023 16:12:37 +0000 (11:12 -0500)
committerVladimir N. Makarov <vmakarov@redhat.com>
Fri, 10 Feb 2023 16:45:33 +0000 (11:45 -0500)
commit3c5154d0f0d2185b518465b264ca17fb7c60c1e8
tree204368be9cb8000a5e0cd55fceb3625a71bbd384
parent6493b7af37e473a89c67afab474330f931dd8447
RA: Use simple LRA for huge functions

The PR108500 test contains a huge function and RA spends a lot of time
to compile the test with -O0.  The patch decreases compilation time
considerably for huge functions.  Compilation time for the PR test
decreases from 1235s to 709s on Intel i7-13600K.

        PR tree-optimization/108500

gcc/ChangeLog:

* params.opt (ira-simple-lra-insn-threshold): Add new param.
* ira.cc (ira): Use the param to switch on simple LRA.
gcc/ira.cc
gcc/params.opt