mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Fix a typo in the dag combiner, so that this can work on i64 targets
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2607,9 +2607,8 @@ SDOperand DAGCombiner::BuildSDIV(SDNode *N) {
|
|||||||
}
|
}
|
||||||
// Extract the sign bit and add it to the quotient
|
// Extract the sign bit and add it to the quotient
|
||||||
SDOperand T =
|
SDOperand T =
|
||||||
DAG.getNode(ISD::SRL, MVT::i32, Q,
|
DAG.getNode(ISD::SRL, VT, Q, DAG.getConstant(MVT::getSizeInBits(VT)-1,
|
||||||
DAG.getConstant(MVT::getSizeInBits(VT)-1,
|
TLI.getShiftAmountTy()));
|
||||||
TLI.getShiftAmountTy()));
|
|
||||||
WorkList.push_back(T.Val);
|
WorkList.push_back(T.Val);
|
||||||
return DAG.getNode(ISD::ADD, VT, Q, T);
|
return DAG.getNode(ISD::ADD, VT, Q, T);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user