Misc. code cleanups.

llvm-svn: 131497
This commit is contained in:
Dan Gohman 2011-05-17 22:22:52 +00:00
parent 7bd3d1c49b
commit abffc991dc
1 changed files with 60 additions and 61 deletions

View File

@ -432,7 +432,7 @@ SDValue ExpandUnalignedStore(StoreSDNode *ST, SelectionDAG &DAG,
SDValue Result = DAG.getNode(ISD::BITCAST, dl, intVT, Val); SDValue Result = DAG.getNode(ISD::BITCAST, dl, intVT, Val);
return DAG.getStore(Chain, dl, Result, Ptr, ST->getPointerInfo(), return DAG.getStore(Chain, dl, Result, Ptr, ST->getPointerInfo(),
ST->isVolatile(), ST->isNonTemporal(), Alignment); ST->isVolatile(), ST->isNonTemporal(), Alignment);
} else { }
// Do a (aligned) store to a stack slot, then copy from the stack slot // Do a (aligned) store to a stack slot, then copy from the stack slot
// to the final destination using (unaligned) integer loads and stores. // to the final destination using (unaligned) integer loads and stores.
EVT StoredVT = ST->getMemoryVT(); EVT StoredVT = ST->getMemoryVT();
@ -494,7 +494,6 @@ SDValue ExpandUnalignedStore(StoreSDNode *ST, SelectionDAG &DAG,
return DAG.getNode(ISD::TokenFactor, dl, MVT::Other, &Stores[0], return DAG.getNode(ISD::TokenFactor, dl, MVT::Other, &Stores[0],
Stores.size()); Stores.size());
} }
}
assert(ST->getMemoryVT().isInteger() && assert(ST->getMemoryVT().isInteger() &&
!ST->getMemoryVT().isVector() && !ST->getMemoryVT().isVector() &&
"Unaligned store of unknown type."); "Unaligned store of unknown type.");