HomePhabricator

[X86][SSE] Fold (VSRAI (VSHLI X, C1), C1) --> X iff NumSignBits(X) > C1

Description

[X86][SSE] Fold (VSRAI (VSHLI X, C1), C1) --> X iff NumSignBits(X) > C1

Remove sign extend in register style pattern if the sign is already extended enough

Details

Committed
RKSimonSep 30 2017, 10:57 AM
Parents
rL314598: [AVX-512] Add patterns to make fp compare instructions commutable during isel.
Branches
Unknown
Tags
Unknown