Minor cleanup.

llvm-svn: 139869
This commit is contained in:
Eli Friedman 2011-09-15 22:26:18 +00:00
parent 7215c58744
commit 10f9ce2b7d
1 changed files with 2 additions and 3 deletions

View File

@ -4863,8 +4863,7 @@ static SDValue LowerADDC_ADDE_SUBC_SUBE(SDValue Op, SelectionDAG &DAG) {
Op.getOperand(1), Op.getOperand(2));
}
static SDValue LowerAtomicLoadStore(SDValue Op, SelectionDAG &DAG,
const ARMSubtarget *ST) {
static SDValue LowerAtomicLoadStore(SDValue Op, SelectionDAG &DAG) {
// Monotonic load/store is legal for all targets
if (cast<AtomicSDNode>(Op)->getOrdering() <= Monotonic)
return Op;
@ -4960,7 +4959,7 @@ SDValue ARMTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const {
case ISD::SUBC:
case ISD::SUBE: return LowerADDC_ADDE_SUBC_SUBE(Op, DAG);
case ISD::ATOMIC_LOAD:
case ISD::ATOMIC_STORE: return LowerAtomicLoadStore(Op, DAG, Subtarget);
case ISD::ATOMIC_STORE: return LowerAtomicLoadStore(Op, DAG);
}
return SDValue();
}