]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: common.opt (fira-select): New.
authorVladimir Makarov <vmakarov@gcc.gnu.org>
Wed, 18 Jul 2018 23:21:38 +0000 (23:21 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Wed, 18 Jul 2018 23:21:38 +0000 (23:21 +0000)
commit3fceb4462a7484503f3048a2c402e7996c72cc7c
tree62e3aff690fb0b137692e98b1286501a074347ac
parent4dffa19c6cc0d80fec09d0604c643364b10b6cee
parentc56e97274f164e704e7f13dfe53531ced3cb24ca
backport: common.opt (fira-select): New.

2018-07-18  Vladimir Makarov  <vmakarov@redhat.com>

Merge with trunk.
* common.opt (fira-select): New.  Choose the selection algorithm
by default.
* ira-costs.c (struct op_info, op_infos, insn_selection): New.
(insn_selections): New.
(CONST_POOL_OK_P, SMALL_REGISTER_CLASS_P, general_constant_p):
New.
(insn_constraints, setup_insn_alt): New.
(record_address_regs): Forward declaration.
(define_op_cost_from_alt): New.
(scan_one_insn): Call setup_insn_alt and define_op_cost_from_alt
for the selection algorithm.
(find_costs_and_classes): Release insn_constraints and
insn_selections.  Don't reuse already calculated pseudo classes
for the selection algorithm.

From-SVN: r262866
gcc/ChangeLog
gcc/common.opt
gcc/ira-costs.c