HomePhabricator

[InstCombine] Add tests for 'partial' bswap patterns

Authored by RKSimon on Sep 30 2020, 8:08 AM.

Description

[InstCombine] Add tests for 'partial' bswap patterns

As mentioned on PR47191, if we're bswap'ing some bytes and the zero'ing the remainder we can perform this as a bswap+mask which helps us match 'partial' bswaps as a first step towards folding into a more complex bswap pattern.

Details

Committed
RKSimonSep 30 2020, 8:09 AM
Parents
rG052c5bf40a9f: [PPC] Do not emit extswsli in 32BIT mode when using -mcpu=pwr9
Branches
Unknown
Tags
Unknown