1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[x86] Delete some extraneous logic from the new vector shuffle lowering.

Nothing was relying on this and there are potentially some edge cases
that it would not be correct under. Removing it seems better than trying
to "fix" it as nothing was relying on it.

llvm-svn: 218755
This commit is contained in:
Chandler Carruth 2014-10-01 11:13:57 +00:00
parent 50ff005894
commit 52fe0fc691

View File

@ -7768,13 +7768,6 @@ static SDValue lowerVectorShuffleAsElementInsertion(
return SDValue(); // Not inserting into a zero vector.
}
// Step over any bitcasts on either input so we can scan the actual
// BUILD_VECTOR nodes.
while (V1.getOpcode() == ISD::BITCAST)
V1 = V1.getOperand(0);
while (V2.getOpcode() == ISD::BITCAST)
V2 = V2.getOperand(0);
// Check for a single input from a SCALAR_TO_VECTOR node.
// FIXME: All of this should be canonicalized into INSERT_VECTOR_ELT and
// all the smarts here sunk into that routine. However, the current