mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Add braces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -988,10 +988,9 @@ processLoopStridedStore(Value *DestPtr, unsigned StoreSize,
|
|||||||
Expander.expandCodeFor(Ev->getStart(), Builder.getInt8PtrTy(AddrSpace),
|
Expander.expandCodeFor(Ev->getStart(), Builder.getInt8PtrTy(AddrSpace),
|
||||||
Preheader->getTerminator());
|
Preheader->getTerminator());
|
||||||
|
|
||||||
|
|
||||||
if (mayLoopAccessLocation(BasePtr, AliasAnalysis::ModRef,
|
if (mayLoopAccessLocation(BasePtr, AliasAnalysis::ModRef,
|
||||||
CurLoop, BECount,
|
CurLoop, BECount,
|
||||||
StoreSize, getAnalysis<AliasAnalysis>(), TheStore)){
|
StoreSize, getAnalysis<AliasAnalysis>(), TheStore)) {
|
||||||
Expander.clear();
|
Expander.clear();
|
||||||
// If we generated new code for the base pointer, clean up.
|
// If we generated new code for the base pointer, clean up.
|
||||||
deleteIfDeadInstruction(BasePtr, *SE, TLI);
|
deleteIfDeadInstruction(BasePtr, *SE, TLI);
|
||||||
@@ -1007,17 +1006,21 @@ processLoopStridedStore(Value *DestPtr, unsigned StoreSize,
|
|||||||
|
|
||||||
const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtr, 1),
|
const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtr, 1),
|
||||||
SCEV::FlagNUW);
|
SCEV::FlagNUW);
|
||||||
if (StoreSize != 1)
|
if (StoreSize != 1) {
|
||||||
NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtr, StoreSize),
|
NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtr, StoreSize),
|
||||||
SCEV::FlagNUW);
|
SCEV::FlagNUW);
|
||||||
|
}
|
||||||
|
|
||||||
Value *NumBytes =
|
Value *NumBytes =
|
||||||
Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator());
|
Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator());
|
||||||
|
|
||||||
CallInst *NewCall;
|
CallInst *NewCall;
|
||||||
if (SplatValue)
|
if (SplatValue) {
|
||||||
NewCall = Builder.CreateMemSet(BasePtr, SplatValue,NumBytes,StoreAlignment);
|
NewCall = Builder.CreateMemSet(BasePtr,
|
||||||
else {
|
SplatValue,
|
||||||
|
NumBytes,
|
||||||
|
StoreAlignment);
|
||||||
|
} else {
|
||||||
Module *M = TheStore->getParent()->getParent()->getParent();
|
Module *M = TheStore->getParent()->getParent()->getParent();
|
||||||
Value *MSP = M->getOrInsertFunction("memset_pattern16",
|
Value *MSP = M->getOrInsertFunction("memset_pattern16",
|
||||||
Builder.getVoidTy(),
|
Builder.getVoidTy(),
|
||||||
|
Reference in New Issue
Block a user