target/108738 - optimize bit operations in STV
authorRichard Biener <rguenther@suse.de>
Thu, 9 Feb 2023 12:40:43 +0000 (13:40 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 15 Feb 2023 07:28:08 +0000 (08:28 +0100)
commite1dfac7e71056e879f101fef1c5ecb8ff6be1a1f
treed0da64355f5c3ddaa408ccbdbf097d7404fcae09
parentec23e9e25eb64bb066dc408fd498861b8587bec8
target/108738 - optimize bit operations in STV

The following does low-hanging optimizations, combining bitmap
test and set and removing redundant operations.

PR target/108738
* config/i386/i386-features.cc (scalar_chain::add_to_queue):
Combine bitmap test and set.
(scalar_chain::add_insn): Likewise.
(scalar_chain::analyze_register_chain): Remove redundant
attempt to add to queue and instead strengthen assert.
Sink common attempts to mark the def dual-mode.
(scalar_chain::add_to_queue): Remove redundant insn bitmap
check.
gcc/config/i386/i386-features.cc