Test source: git
Source: <stdin> ---------------------------------------- define * @test1(* %x) { %entry: %a = bitcast * %x to * %b = load i64, * %a, align 4 %c = int2ptr i64 %b to * ret * %c } => define * @test1(* %x) { %entry: %0 = bitcast * %x to * %b1 = load *, * %0, align 4 ret * %b1 } Transformation doesn't verify! ERROR: Target is more poisonous than source Example: * %x = pointer(non-local, block_id=1, offset=1154047868437266433) Source: * %a = pointer(non-local, block_id=1, offset=1154047868437266433) i64 %b = #x0100000000002000 (72057594037936128) * %c = (invalid expr) SOURCE MEMORY STATE =================== NON-LOCAL BLOCKS: Block 0 > size: 0 align: 1 alloc type: 0 address: 0 Block 1 > size: 2305843009214486528 align: 2 alloc type: 0 address: 3 Block 2 > size: 18014423675308029 align: 2 alloc type: 0 address: 4612811918334494722 Target: * %0 = pointer(non-local, block_id=1, offset=1154047868437266433) * %b1 = poison Source value: (invalid expr) Target value: poison ------------------- SMT STATS ------------------- Num queries: 2 Num invalid: 0 Num skips: 0 Num trivial: 2 (50.0%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 2 (100.0%) Num UNSAT: 0 (0.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/load-bitcast64.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/load-bitcast64.ll