Test source: git
Source: <stdin> ---------------------------------------- define void @shl(i32 %b, i32 %s) { %0: %t1 = add i32 %b, %s call void @foo(i32 %t1) %s2 = shl i32 %s, 1 %t2 = add i32 %b, %s2 call void @foo(i32 %t2) ret void } => define void @shl(i32 %b, i32 %s) { %0: %t1 = add i32 %b, %s call void @foo(i32 %t1) %t2 = add i32 %t1, %s call void @foo(i32 %t2) ret void } Transformation doesn't verify! ERROR: Source is more defined than target Example: i32 %b = undef i32 %s = undef Source: i32 %t1 = undef i32 %s2 = #x00000000 (0) [based on undef value] i32 %t2 = undef SOURCE MEMORY STATE =================== NON-LOCAL BLOCKS: Block 0 > size: 0 align: 64 alloc type: 0 Block 1 > size: 1 align: 2 alloc type: 0 Target: i32 %t1 = undef i32 %t2 = undef ------------------- SMT STATS ------------------- Num queries: 8 Num invalid: 0 Num skips: 0 Num trivial: 0 (0.0%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 3 (37.5%) Num UNSAT: 5 (62.5%)
+ : 'RUN: at line 2' + /home/nlopes/alive2/scripts/opt-alive.sh -slsr -gvn -S + /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/StraightLineStrengthReduce/slsr-add.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/StraightLineStrengthReduce/slsr-add.ll
NOTE: This test would pass if undef didn't exist!