LegalizeDAG doesn't need its own copy of this enum.

llvm-svn: 135320
This commit is contained in:
Dan Gohman 2011-07-15 22:51:43 +00:00
parent d57a049e5c
commit 945864d6dc
1 changed files with 1 additions and 7 deletions

View File

@ -58,12 +58,6 @@ class SelectionDAGLegalize {
/// against each other, including inserted libcalls. /// against each other, including inserted libcalls.
SmallVector<SDValue, 8> LastCALLSEQ; SmallVector<SDValue, 8> LastCALLSEQ;
enum LegalizeAction {
Legal, // The target natively supports this operation.
Promote, // This operation should be executed in a larger type.
Expand // Try to expand this to other ops, otherwise use a libcall.
};
/// LegalizedNodes - For nodes that are of legal width, and that have more /// LegalizedNodes - For nodes that are of legal width, and that have more
/// than one use, this map indicates what regularized operand to use. This /// than one use, this map indicates what regularized operand to use. This
/// allows us to avoid legalizing the same thing more than once. /// allows us to avoid legalizing the same thing more than once.
@ -1612,7 +1606,7 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
case TargetLowering::Custom: case TargetLowering::Custom:
Result = TLI.LowerOperation(Result, DAG); Result = TLI.LowerOperation(Result, DAG);
break; break;
case Expand: case TargetLowering::Expand:
EVT WideScalarVT = Tmp3.getValueType().getScalarType(); EVT WideScalarVT = Tmp3.getValueType().getScalarType();
EVT NarrowScalarVT = StVT.getScalarType(); EVT NarrowScalarVT = StVT.getScalarType();