]> 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)
committerAndrew Pinski <quic_apinski@quicinc.com>
Fri, 26 Jul 2024 16:52:37 +0000 (09:52 -0700)
commit9e7b2ad4abae69e6348220b7c5ad2fb8e3d52c83
treef439d51c3badf14b964749961c07a87d7810a059
parent899ee4815424a73a2b9d899591fab3fcc4520b61
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