Further improve redundant test/compare removal on the H8
authorJeff Law <jeffreyalaw@gmail.com>
Tue, 8 Jun 2021 14:10:23 +0000 (10:10 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Tue, 8 Jun 2021 14:13:41 +0000 (10:13 -0400)
commit941aa24ca9553b422dba6e267448ddd952bc52d1
treed94901dc7f58cf4ce4f1533b9f0cf687056eccc3
parentd319517e809ee50496db29e552f86a83a14c837c
Further improve redundant test/compare removal on the H8

gcc/
* config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
Create length attribute on define_insn_and_split.  Only split for cases which we
know will use AND.
(andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags.  Only handle AND here and
fix length computation.
(b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
gcc/config/h8300/logical.md