mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +00:00
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
711bb91574
commit
7453f8a68f
@ -3047,8 +3047,8 @@ static SDValue getMemsetValue(SDValue Value, EVT VT, SelectionDAG &DAG,
|
|||||||
/// used when a memcpy is turned into a memset when the source is a constant
|
/// used when a memcpy is turned into a memset when the source is a constant
|
||||||
/// string ptr.
|
/// string ptr.
|
||||||
static SDValue getMemsetStringVal(EVT VT, DebugLoc dl, SelectionDAG &DAG,
|
static SDValue getMemsetStringVal(EVT VT, DebugLoc dl, SelectionDAG &DAG,
|
||||||
const TargetLowering &TLI,
|
const TargetLowering &TLI,
|
||||||
std::string &Str, unsigned Offset) {
|
std::string &Str, unsigned Offset) {
|
||||||
// Handle vector with all elements zero.
|
// Handle vector with all elements zero.
|
||||||
if (Str.empty()) {
|
if (Str.empty()) {
|
||||||
if (VT.isInteger())
|
if (VT.isInteger())
|
||||||
@ -3219,7 +3219,7 @@ static SDValue getMemcpyLoadsAndStores(SelectionDAG &DAG, DebugLoc dl,
|
|||||||
SmallVector<SDValue, 8> OutChains;
|
SmallVector<SDValue, 8> OutChains;
|
||||||
unsigned NumMemOps = MemOps.size();
|
unsigned NumMemOps = MemOps.size();
|
||||||
uint64_t SrcOff = 0, DstOff = 0;
|
uint64_t SrcOff = 0, DstOff = 0;
|
||||||
for (unsigned i = 0; i < NumMemOps; i++) {
|
for (unsigned i = 0; i != NumMemOps; ++i) {
|
||||||
EVT VT = MemOps[i];
|
EVT VT = MemOps[i];
|
||||||
unsigned VTSize = VT.getSizeInBits() / 8;
|
unsigned VTSize = VT.getSizeInBits() / 8;
|
||||||
SDValue Value, Store;
|
SDValue Value, Store;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user