]> git.ipfire.org Git - thirdparty/gcc.git/commit
doloop: Add support for predicated vectorized loops
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Wed, 19 Jun 2024 16:05:45 +0000 (17:05 +0100)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Wed, 19 Jun 2024 16:05:45 +0000 (17:05 +0100)
commit5d0c1b4e0d33c2d1077264636d0a65ce206d0d96
treed78d284f4ea5c148367be19b3efd9b6f80154757
parent8088374a868aacab4dff208ec3e3fde790a1d9a3
doloop: Add support for predicated vectorized loops

This patch adds support in the target agnostic doloop pass for the detection of
predicated vectorized hardware loops.  Arm is currently the only target that
will make use of this feature.

gcc/ChangeLog:

* df-core.cc (df_bb_regno_only_def_find): New helper function.
* df.h (df_bb_regno_only_def_find): Declare new function.
* loop-doloop.cc (doloop_condition_get): Add support for detecting
predicated vectorized hardware loops.
(doloop_modify): Add support for GTU condition checks.
(doloop_optimize): Update costing computation to support alterations to
desc->niter_expr by the backend.

Co-authored-by: Stam Markianos-Wright <stam.markianos-wright@arm.com>
gcc/df-core.cc
gcc/df.h
gcc/loop-doloop.cc