mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
temporarily disable memset formation from memsets in an effort to restore buildbot stability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123144 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -517,6 +517,9 @@ bool MemCpyOpt::processStore(StoreInst *SI, BasicBlock::iterator &BBI) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool MemCpyOpt::processMemSet(MemSetInst *MSI, BasicBlock::iterator &BBI) {
|
bool MemCpyOpt::processMemSet(MemSetInst *MSI, BasicBlock::iterator &BBI) {
|
||||||
|
// Temporarily disable this.
|
||||||
|
return false;
|
||||||
|
|
||||||
// See if there is another memset or store neighboring this memset which
|
// See if there is another memset or store neighboring this memset which
|
||||||
// allows us to widen out the memset to do a single larger store.
|
// allows us to widen out the memset to do a single larger store.
|
||||||
if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
|
if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile())
|
||||||
|
@@ -202,9 +202,10 @@ entry:
|
|||||||
%arrayidx = getelementptr inbounds i32* %P, i64 1
|
%arrayidx = getelementptr inbounds i32* %P, i64 1
|
||||||
store i32 0, i32* %arrayidx, align 4
|
store i32 0, i32* %arrayidx, align 4
|
||||||
ret void
|
ret void
|
||||||
|
; FIXME: Disabled.
|
||||||
; CHECK: @test5
|
; CHECK: @test5
|
||||||
; CHECK-NOT: store
|
; CHECK: store
|
||||||
; CHECK: call void @llvm.memset.p0i8.i64(i8* %1, i8 0, i64 15, i32 4, i1 false)
|
; CHECK-NOT: call void @llvm.memset.p0i8.i64(i8* %1, i8 0, i64 15, i32 4, i1 false)
|
||||||
}
|
}
|
||||||
|
|
||||||
;; Memset followed by memset.
|
;; Memset followed by memset.
|
||||||
@@ -217,6 +218,6 @@ entry:
|
|||||||
tail call void @llvm.memset.p0i8.i64(i8* %1, i8 0, i64 12, i32 1, i1 false)
|
tail call void @llvm.memset.p0i8.i64(i8* %1, i8 0, i64 12, i32 1, i1 false)
|
||||||
ret void
|
ret void
|
||||||
; CHECK: @test6
|
; CHECK: @test6
|
||||||
; CHECK: call void @llvm.memset.p0i8.i64(i8* %2, i8 0, i64 24, i32 1, i1 false)
|
; CHECK-NOT: call void @llvm.memset.p0i8.i64(i8* %2, i8 0, i64 24, i32 1, i1 false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user