[InstCombine] Make MatchBSwap also match bit reversals

Description

[InstCombine] Make MatchBSwap also match bit reversals

MatchBSwap has most of the functionality to match bit reversals already. If we switch it from looking at bytes to individual bits and remove a few early exits, we can extend the main recursive function to match any sequence of ORs, ANDs and shifts that assemble a value from different parts of another, base value. Once we have this bit->bit mapping, we can very simply detect if it is appropriate for a bswap or bitreverse.

Details

Committed
jamesmDec 11 2015, 2:04 AM
Parents
rL255333: Add test suite output for 450.soplex v1.1
Branches
Unknown
Tags
Unknown