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=1, offset=0)
* %Q = poison
i1 %A = #x0 (0)
i1 %B = poison

Source:

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

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



------------------- SMT STATS -------------------
Num queries: 3
Num invalid: 0
Num skips:   0
Num trivial: 3 (50.0%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     3 (100.0%)
Num UNSAT:   0 (0.0%)
Alive2: Transform doesn't verify; aborting!

stderr:

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

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