Test Failure: Transforms/SimplifyCFG/preserve-branchweights.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define void @test1(i1 %a, i1 %b) {
%entry:
  br i1 %a, label %Y, label %X

%X:
  %c = or i1 %b, 0
  br i1 %c, label %Z, label %Y

%Z:
  call void @helper(i32 1)
  ret void

%Y:
  call void @helper(i32 0)
  ret void
}
=>
define void @test1(i1 %a, i1 %b) {
%entry:
  %a.not = xor i1 %a, 1
  %c = or i1 %b, 0
  %or.cond = and i1 %a.not, %c
  br i1 %or.cond, label %Z, label %Y

%Y:
  call void @helper(i32 0)
  ret void

%Z:
  call void @helper(i32 1)
  ret void
}
Transformation doesn't verify!
ERROR: Source is more defined than target

Example:
i1 %a = #x1 (1)
i1 %b = poison

Source:
i1 %c = poison

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

Target:
i1 %a.not = #x0 (0)
i1 %c = poison
i1 %or.cond = 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 2'
+ /home/nlopes/alive2/scripts/opt-alive.sh -simplifycfg -S -o -
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/preserve-branchweights.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/SimplifyCFG/preserve-branchweights.ll

 

<-- Back