Test source: git
Comments: LLVM bug: memcpy -> i8 load/store
Source: <stdin> ---------------------------------------- define void @copy_1_byte(* %d, * %s) { %0: memcpy * %d align 1, * %s align 1, i32 1 ret void } => define void @copy_1_byte(* %d, * %s) { %0: %1 = load i8, * %s, align 1 store i8 %1, * %d, align 1 ret void } Transformation doesn't verify! ERROR: Mismatch in memory Example: * %d = pointer(non-local, block_id=1, offset=6) * %s = pointer(non-local, block_id=1, offset=4) Source: SOURCE MEMORY STATE =================== NON-LOCAL BLOCKS: Block 0 > size: 0 align: 64 alloc type: 0 Block 1 > size: 8 align: 4 alloc type: 0 Block 2 > align: 2 alloc type: 0 Target: i8 %1 = poison Mismatch in pointer(non-local, block_id=1, offset=6) Source value: null, byte offset=0 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 2' + /home/nlopes/alive2/scripts/opt-alive.sh -instcombine -S + /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/InstCombine/memcpy-to-load.ll --check-prefix=ALL --check-prefix=NODL 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/memcpy-to-load.ll --check-prefix=ALL --check-prefix=NODL