]> gcc.gnu.org Git - gcc.git/commit
Improve cost computation for single-bit bit insertions.
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 23 May 2023 16:49:19 +0000 (18:49 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Tue, 23 May 2023 16:51:58 +0000 (18:51 +0200)
commit58b41bb4bafffec5e2e3425c8cee82b304bd0a5f
treea645cc9283aaae83a1502dbd0ef23ca8775419b9
parentf504b70eb0fc1339322960041a85606df4547897
Improve cost computation for single-bit bit insertions.

Some miscomputation of rtx_costs lead to sub-optimal code for
single-bit bit insertions.  This patch implements TARGET_INSN_COST,
which has a chance to see the whole insn during insn combination;
in partictlar the SET_DEST of (set (zero_extract (...) ...)).

gcc/
* config/avr/avr.cc (avr_insn_cost): New static function.
(TARGET_INSN_COST): Define to that function.
gcc/config/avr/avr.cc
This page took 0.065803 seconds and 5 git commands to generate.