]> git.ipfire.org Git - thirdparty/gcc.git/commit
isel: Move duplicate comparisons to its own function
authorAndrew Pinski <quic_apinski@quicinc.com>
Thu, 25 Jul 2024 23:17:15 +0000 (16:17 -0700)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 28 Jul 2024 17:06:00 +0000 (19:06 +0200)
commit9e74470d64f3fb4086b7f29303b74ae23c39abb8
tree7b614575a687d18f4330c9d3c82733c6e26e0c7f
parent2477f7c005a0ab42dc76d827fc55776d4f62e654
isel: Move duplicate comparisons to its own function

This is just a small cleanup to isel and no functional changes just.
The loop inside pass_gimple_isel::execute looked was getting too
deap so let's fix that by moving it to its own function.

Bootstrapped and tested on x86_64-linux-gnu with no regressions.

gcc/ChangeLog:

* gimple-isel.cc (pass_gimple_isel::execute): Factor out
duplicate comparisons out to ...
(duplicate_comparison): New function.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/gimple-isel.cc