diff options
| author | Duncan Sands <baldrick@free.fr> | 2012-10-04 13:53:21 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2012-10-04 13:53:21 +0000 |
| commit | a6d20010feea96ea5265af03b764f206f6440aa6 (patch) | |
| tree | a05d6d3d4f8a781afa98caed466324fdf7858e3e /llvm/test/Transforms/MemCpyOpt | |
| parent | d2f6b974175fefbb6df8cd9f1ee26525c0f9e607 (diff) | |
| download | bcm5719-llvm-a6d20010feea96ea5265af03b764f206f6440aa6.tar.gz bcm5719-llvm-a6d20010feea96ea5265af03b764f206f6440aa6.zip | |
In my recent change to avoid use of underaligned memory I didn't notice that
cpyDest can be mutated in some cases, which would then cause a crash later if
indeed the memory was underaligned. This brought down several buildbots, so
I guess the underaligned case is much more common than I thought!
llvm-svn: 165228
Diffstat (limited to 'llvm/test/Transforms/MemCpyOpt')
| -rw-r--r-- | llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll b/llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll index 61ba3c7e6cc..597b69dee3d 100644 --- a/llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll +++ b/llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll @@ -9,11 +9,11 @@ declare void @g(%a*) define float @f() { entry: %a_var = alloca %a - %b_var = alloca %b + %b_var = alloca %b, align 1 call void @g(%a* %a_var) %a_i8 = bitcast %a* %a_var to i8* %b_i8 = bitcast %b* %b_var to i8* - call void @llvm.memcpy.p0i8.p0i8.i32(i8* %b_i8, i8* %a_i8, i32 4, i32 4, i1 false) + call void @llvm.memcpy.p0i8.p0i8.i32(i8* %b_i8, i8* %a_i8, i32 4, i32 1, i1 false) %tmp1 = getelementptr %b* %b_var, i32 0, i32 0 %tmp2 = load float* %tmp1 ret float %tmp2 |

