Test source: git
Source: <stdin> ---------------------------------------- define void @test1(* %a1, * %a2) { %entry: %0 = bitcast * %a1 to * %1 = bitcast * %a2 to * memcpy * %0 align 4, * %1 align 4, i64 4 ret void } => define void @test1(* %a1, * %a2) { %entry: %0 = bitcast * %a2 to * %1 = bitcast * %a1 to * %2 = load i32, * %0, align 4 store i32 %2, * %1, align 4 ret void } Transformation doesn't verify! ERROR: Mismatch in memory Example: * %a1 = pointer(non-local, block_id=2, offset=0) * %a2 = pointer(non-local, block_id=1, offset=0) Source: * %0 = pointer(non-local, block_id=2, offset=0) * %1 = pointer(non-local, block_id=1, offset=0) SOURCE MEMORY STATE =================== NON-LOCAL BLOCKS: Block 0 > size: 0 align: 64 alloc type: 0 Block 1 > size: 5 align: 512 alloc type: 0 Block 2 > size: 9 align: 4 alloc type: 0 Target: * %0 = pointer(non-local, block_id=1, offset=0) * %1 = pointer(non-local, block_id=2, offset=0) i32 %2 = poison Mismatch in pointer(non-local, block_id=2, offset=0) Source value: #x00 Target value: poison ------------------- SMT STATS ------------------- Num queries: 4 Num invalid: 0 Num skips: 0 Num trivial: 2 (33.3%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 2 (50.0%) Num UNSAT: 2 (50.0%)
+ : 'RUN: at line 1' + /home/nlopes/alive2/scripts/opt-alive.sh -instcombine -S + /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/struct-assign-tbaa-new.ll Alive2: Transform doesn't verify; aborting! FileCheck error: '<stdin>' is empty. FileCheck command line: /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/struct-assign-tbaa-new.ll