mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Use DAG.getIntPtrConstant rather than DAG.getConstant
with TLI.getPointerTy for a small simplification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -767,10 +767,8 @@ void DAGTypeLegalizer::ExpandFloatRes_XINT_TO_FP(SDNode *N, SDValue &Lo,
|
||||
MVT::ppcf128));
|
||||
Lo = DAG.getNode(ISD::SELECT_CC, VT, Src, DAG.getConstant(0, SrcVT), Lo, Hi,
|
||||
DAG.getCondCode(ISD::SETLT));
|
||||
Hi = DAG.getNode(ISD::EXTRACT_ELEMENT, NVT, Lo,
|
||||
DAG.getConstant(1, TLI.getPointerTy()));
|
||||
Lo = DAG.getNode(ISD::EXTRACT_ELEMENT, NVT, Lo,
|
||||
DAG.getConstant(0, TLI.getPointerTy()));
|
||||
Hi = DAG.getNode(ISD::EXTRACT_ELEMENT, NVT, Lo, DAG.getIntPtrConstant(1));
|
||||
Lo = DAG.getNode(ISD::EXTRACT_ELEMENT, NVT, Lo, DAG.getIntPtrConstant(0));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user