Test Failure: Transforms/SimplifyCFG/branch-fold.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define void @test(* %P, * %Q, i1 %A, i1 %B) {
%entry:
  br i1 %A, label %a, label %b

%a:
  br i1 %B, label %b, label %c

%b:
  store i32 123, * %P, align 4
  ret void

%c:
  ret void
}
=>
define void @test(* %P, * %Q, i1 %A, i1 %B) {
%entry:
  %A.not = xor i1 %A, 1
  %brmerge = or i1 %A.not, %B
  br i1 %brmerge, label %b, label %c

%c:
  ret void

%b:
  store i32 123, * %P, align 4
  ret void
}
Transformation doesn't verify!
ERROR: Source is more defined than target

Example:
* %P = pointer(non-local, block_id=2, offset=0)
* %Q = poison
i1 %A = #x0 (0)
i1 %B = poison

Source:

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 64	alloc type: 0
Block 1 >	align: 2	alloc type: 0
Block 2 >	size: 4	align: 256	alloc type: 0

Target:
i1 %A.not = #x1 (1)
i1 %brmerge = poison



------------------- SMT STATS -------------------
Num queries: 2
Num invalid: 0
Num skips:   0
Num trivial: 0 (0.0%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     2 (100.0%)
Num UNSAT:   0 (0.0%)

stderr:

+ : 'RUN: at line 1'
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/branch-fold.ll
+ /home/nlopes/alive2/scripts/opt-alive.sh -simplifycfg -S

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/SimplifyCFG/branch-fold.ll

 

<-- Back