diff options
author | Duncan Sands <baldrick@free.fr> | 2009-04-27 19:33:03 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-04-27 19:33:03 +0000 |
commit | 9771b91c2b4ce3baefdb9ba4ddfd9a9dd5077004 (patch) | |
tree | 227ee45cb06b8d609d01ef1929f34f62a972f80a /lib/CodeGen/SelectionDAG/LegalizeTypes.cpp | |
parent | 48c255d7f864e95680f139118db60cde539b561a (diff) |
Now that PR2957 is resolved, remove a bunch of
no-longer needed workarounds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeTypes.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeTypes.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index 632524fd96..dc0f7957d7 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp @@ -116,11 +116,8 @@ void DAGTypeLegalizer::PerformExpensiveChecks() { cerr << "Unprocessed value in a map!"; Failed = true; } - } else if (isTypeLegal(Res.getValueType()) || IgnoreNodeResults(I)) { - // FIXME: Because of PR2957, the build vector can be placed on this - // list but if the associated vector shuffle is split, the build vector - // can also be split so we allow this to go through for now. - if (Mapped > 1 && Res.getOpcode() != ISD::BUILD_VECTOR) { + } else if (isTypeLegal(Res.getValueType())) { + if (Mapped > 1) { cerr << "Value with legal type was transformed!"; Failed = true; } @@ -266,13 +263,6 @@ ScanOperands: if (IgnoreNodeResults(N->getOperand(i).getNode())) continue; - if (N->getOpcode() == ISD::VECTOR_SHUFFLE && i == 2) { - // The shuffle mask doesn't need to be a legal vector type. - // FIXME: We can remove this once we fix PR2957. - SetIgnoredNodeResult(N->getOperand(2).getNode()); - continue; - } - MVT OpVT = N->getOperand(i).getValueType(); switch (getTypeAction(OpVT)) { default: @@ -842,10 +832,6 @@ void DAGTypeLegalizer::SetWidenedVector(SDValue Op, SDValue Result) { OpEntry = Result; } -// Set to ignore result -void DAGTypeLegalizer::SetIgnoredNodeResult(SDNode* N) { - IgnoredNodesResultsSet.insert(N); -} //===----------------------------------------------------------------------===// // Utilities. |