diff options
author | Dan Gohman <gohman@apple.com> | 2010-03-23 22:15:31 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-03-23 22:15:31 +0000 |
commit | 42f8ddeb115b8c575976254db43726dea06ca208 (patch) | |
tree | 7089e7bcec6fedeab7d9a83ab01fc2c372d49ff4 /llvm/lib/CodeGen/SelectionDAG | |
parent | 7d32580e5a939da64849dc7b3a01cfe257de9694 (diff) | |
download | bcm5719-llvm-42f8ddeb115b8c575976254db43726dea06ca208.tar.gz bcm5719-llvm-42f8ddeb115b8c575976254db43726dea06ca208.zip |
Remove getTypeToExpandTo, since it isn't adding much value
beyond just calling getTypeToTransformTo.
llvm-svn: 99335
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 48f64c34d6d..109281307d3 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.getTypeToExpandTo(*DAG.getContext(), NVT))) { + TLI.getTypeToTransformTo(*DAG.getContext(), NVT))) { // Emit this X << 1 as X+X. SDVTList VTList = DAG.getVTList(NVT, MVT::Flag); SDValue LoOps[2] = { InL, InL }; @@ -1263,7 +1263,8 @@ void DAGTypeLegalizer::ExpandIntRes_ADDSUB(SDNode *N, bool hasCarry = TLI.isOperationLegalOrCustom(N->getOpcode() == ISD::ADD ? ISD::ADDC : ISD::SUBC, - TLI.getTypeToExpandTo(*DAG.getContext(), NVT)); + TLI.getTypeToTransformTo(*DAG.getContext(), + NVT)); if (hasCarry) { SDVTList VTList = DAG.getVTList(NVT, MVT::Flag); |