[TLI] prepareSREMEqFold(): use correct VT for the final VSELECT (PR51133)
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Jul 2021 13:39:37 +0000 (16:39 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Jul 2021 13:44:00 +0000 (16:44 +0300)
commit5b51bd187894820411ad3edcfd1775a78a4a1424
treec37262bd81e5f7a15b0d492f7649b7496a1ac518
parenteacbd7d25ae08465bcef4fb6d3b86c7dddb2d64f
[TLI] prepareSREMEqFold(): use correct VT for the final VSELECT (PR51133)

We were using the wrong VT for this final VSELECT,
it should be in the final comparison VT,
not the source value's VT.

Fixes https://bugs.llvm.org/show_bug.cgi?id=51133
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/srem-seteq-vec-nonsplat.ll