]> git.ipfire.org Git - thirdparty/gcc.git/commit
Move ix86_align_loops into a separate pass and insert the pass after pass_endbr_and_p...
authorliuhongt <hongtao.liu@intel.com>
Mon, 12 Aug 2024 06:35:31 +0000 (14:35 +0800)
committerliuhongt <hongtao.liu@intel.com>
Wed, 14 Aug 2024 01:28:43 +0000 (09:28 +0800)
commitc3c83d22d212a35cb1bfb8727477819463f0dcd8
tree9d3ae919b48e6207d49b3ca1b3cb32de038b3df7
parent9045ab75b4b125827ed703fadabc17832f25de8f
Move ix86_align_loops into a separate pass and insert the pass after pass_endbr_and_patchable_area.

gcc/ChangeLog:

PR target/116174
* config/i386/i386.cc (ix86_align_loops): Move this to ..
* config/i386/i386-features.cc (ix86_align_loops): .. here.
(class pass_align_tight_loops): New class.
(make_pass_align_tight_loops): New function.
* config/i386/i386-passes.def: Insert pass_align_tight_loops
after pass_insert_endbr_and_patchable_area.
* config/i386/i386-protos.h (make_pass_align_tight_loops): New
declare.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr116174.c: New test.
gcc/config/i386/i386-features.cc
gcc/config/i386/i386-passes.def
gcc/config/i386/i386-protos.h
gcc/config/i386/i386.cc
gcc/testsuite/gcc.target/i386/pr116174.c [new file with mode: 0644]