aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/lib-xref.adb
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2018-07-30 15:18:17 +0200
committerSegher Boessenkool <segher@gcc.gnu.org>2018-07-30 15:18:17 +0200
commitc4c5ad1d6d1e1e1fe7a1c2b3bb097cc269dc7306 (patch)
treedb35a1bcff6529550ee3faeeff600824b8b1840d /gcc/ada/lib-xref.adb
parentb74159752d6c1f955660e829a17e1aad1cead348 (diff)
downloadgcc-c4c5ad1d6d1e1e1fe7a1c2b3bb097cc269dc7306.zip
gcc-c4c5ad1d6d1e1e1fe7a1c2b3bb097cc269dc7306.tar.gz
gcc-c4c5ad1d6d1e1e1fe7a1c2b3bb097cc269dc7306.tar.bz2
combine: Allow combining two insns to two insns
This patch allows combine to combine two insns into two. This helps in many cases, by reducing instruction path length, and also allowing further combinations to happen. PR85160 is a typical example of code that it can improve. This patch does not allow such combinations if either of the original instructions was a simple move instruction. In those cases combining the two instructions increases register pressure without improving the code. With this move test register pressure does no longer increase noticably as far as I can tell. (At first I also didn't allow either of the resulting insns to be a move instruction. But that is actually a very good thing to have, as should have been obvious). PR rtl-optimization/85160 * combine.c (is_just_move): New function. (try_combine): Allow combining two instructions into two if neither of the original instructions was a move. From-SVN: r263067
Diffstat (limited to 'gcc/ada/lib-xref.adb')
0 files changed, 0 insertions, 0 deletions