diff options
| author | Dan Gohman <gohman@apple.com> | 2010-03-23 22:44:42 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-03-23 22:44:42 +0000 |
| commit | c53d5d6bb49784b9e74da63c6c4e3bf372a8f1dd (patch) | |
| tree | cff4cd44e59ccef42af9867cbd9a9b649270ccc5 /llvm/lib/CodeGen | |
| parent | c941619a73ab8f7bcdd6f2e6c4306d47514dee92 (diff) | |
| download | bcm5719-llvm-c53d5d6bb49784b9e74da63c6c4e3bf372a8f1dd.tar.gz bcm5719-llvm-c53d5d6bb49784b9e74da63c6c4e3bf372a8f1dd.zip | |
Revert 99335. getTypeToExpandTo's iterative behavior is actually
needed here.
llvm-svn: 99339
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 109281307d3..48f64c34d6d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -1021,7 +1021,7 @@ void DAGTypeLegalizer::ExpandShiftByConstant(SDNode *N, unsigned Amt, Hi = InL; } else if (Amt == 1 && TLI.isOperationLegalOrCustom(ISD::ADDC, - TLI.getTypeToTransformTo(*DAG.getContext(), NVT))) { + TLI.getTypeToExpandTo(*DAG.getContext(), NVT))) { // Emit this X << 1 as X+X. SDVTList VTList = DAG.getVTList(NVT, MVT::Flag); SDValue LoOps[2] = { InL, InL }; @@ -1263,8 +1263,7 @@ void DAGTypeLegalizer::ExpandIntRes_ADDSUB(SDNode *N, bool hasCarry = TLI.isOperationLegalOrCustom(N->getOpcode() == ISD::ADD ? ISD::ADDC : ISD::SUBC, - TLI.getTypeToTransformTo(*DAG.getContext(), - NVT)); + TLI.getTypeToExpandTo(*DAG.getContext(), NVT)); if (hasCarry) { SDVTList VTList = DAG.getVTList(NVT, MVT::Flag); |

