mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 04:22:57 +02:00
Add a FIXME about the VECTOR_SHUFFLE evil hack.
llvm-svn: 47676
This commit is contained in:
parent
8dc3548bdf
commit
0139087442
@ -547,6 +547,8 @@ SDOperand DAGTypeLegalizer::SplitOp_VECTOR_SHUFFLE(SDNode *N, unsigned OpNo) {
|
|||||||
|
|
||||||
// If the element type is not legal, find a larger legal type to use for
|
// If the element type is not legal, find a larger legal type to use for
|
||||||
// the BUILD_VECTOR operands. This is an ugly hack, but seems to work!
|
// the BUILD_VECTOR operands. This is an ugly hack, but seems to work!
|
||||||
|
// FIXME: The real solution is to change VECTOR_SHUFFLE into a variadic
|
||||||
|
// node where the shuffle mask is a list of integer operands, #2 .. #2+n.
|
||||||
for (MVT::SimpleValueType OpVT = EltVT; OpVT <= MVT::LAST_INTEGER_VALUETYPE;
|
for (MVT::SimpleValueType OpVT = EltVT; OpVT <= MVT::LAST_INTEGER_VALUETYPE;
|
||||||
// Integer values types are consecutively numbered. Exploit this.
|
// Integer values types are consecutively numbered. Exploit this.
|
||||||
OpVT = MVT::SimpleValueType(OpVT + 1)) {
|
OpVT = MVT::SimpleValueType(OpVT + 1)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user