HomePhabricator

[InstCombine] Make sure that LHS and RHS have the same type in

Description

[InstCombine] Make sure that LHS and RHS have the same type in
transformToIndexedCompare

If they don't have the same type, the size of the constant
index would need to be adjusted (and this wouldn't be always
possible).

Alternatively we could try the analysis with the initial
RHS value, which would guarantee that the two sides have
the same type. However it is unlikely that in practice this
would pass our transformation requirements.

Fixes PR31808 (https://llvm.org/bugs/show_bug.cgi?id=31808).

Details

Committed
sbarangaJan 31 2017, 6:04 AM
Parents
rL293628: [X86][SSE] Detect unary PBLEND shuffles.
Branches
Unknown
Tags
Unknown