HomePhabricator

[X86][SSE] Fold select(X > -1, A, B) -> select(0 > X, B, A) (PR47404)

Authored by RKSimon on Sep 3 2020, 4:55 AM.

Description

[X86][SSE] Fold select(X > -1, A, B) -> select(0 > X, B, A) (PR47404)

Help PBLENDVB peek through to the sign bit source of the selection mask by swapping the select condition and inputs.

Details

Committed
RKSimonSep 3 2020, 5:02 AM
Parents
rGc5716447c14f: [NFC][RISCV] Simplify pass arg of RISCVMergeBaseOffsetOpt
Branches
Unknown
Tags
Unknown