[InstCombine] limit bitcast+insertelement transform to x86 MMX type
authorSanjay Patel <spatel@rotateright.com>
Wed, 6 May 2020 15:24:59 +0000 (11:24 -0400)
committerSanjay Patel <spatel@rotateright.com>
Wed, 6 May 2020 17:12:36 +0000 (13:12 -0400)
commit2058c98715f6baf59fae1e1d617958cea39236b4
tree4caf50d261f9c4bed84b5f42e1573fced06cc888
parent57a1c1be53aeea521747dd2f4b0097831341bea5
[InstCombine] limit bitcast+insertelement transform to x86 MMX type

This is unusual for the general case because we are replacing
1 instruction with 2.

Splitting from a potential conflicting transform in D79171
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/bitcast-vec-canon.ll