mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 02:28:23 +00:00
Fixed extract element when the result needs to be promoted and the input widened.
llvm-svn: 63217
This commit is contained in:
parent
bb9695f3c7
commit
881e7e990a
@ -292,6 +292,8 @@ SDValue DAGTypeLegalizer::PromoteIntRes_CTTZ(SDNode *N) {
|
||||
SDValue DAGTypeLegalizer::PromoteIntRes_EXTRACT_VECTOR_ELT(SDNode *N) {
|
||||
MVT OldVT = N->getValueType(0);
|
||||
SDValue OldVec = N->getOperand(0);
|
||||
if (getTypeAction(OldVec.getValueType()) == WidenVector)
|
||||
OldVec = GetWidenedVector(N->getOperand(0));
|
||||
unsigned OldElts = OldVec.getValueType().getVectorNumElements();
|
||||
|
||||
if (OldElts == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user