Test Failure: Transforms/SimplifyCFG/fold-branch-to-common-dest.ll

Test source: git

Comments: Alive2 missing support for speculatable attribute

Log:

Source: <stdin>

----------------------------------------
define void @one_pred(i8 %v0, i8 %v1) {
%pred:
  %c0 = icmp eq i8 %v0, 0
  br i1 %c0, label %dispatch, label %final_right

%dispatch:
  %c1 = icmp eq i8 %v1, 0
  br i1 %c1, label %final_left, label %final_right

%final_left:
  call void @sideeffect0()
  ret void

%final_right:
  call void @sideeffect1()
  ret void
}
=>
define void @one_pred(i8 %v0, i8 %v1) {
%pred:
  %c0 = icmp eq i8 %v0, 0
  %c1 = icmp eq i8 %v1, 0
  %or.cond = and i1 %c0, %c1
  br i1 %or.cond, label %final_left, label %final_right

%final_right:
  call void @sideeffect1()
  ret void

%final_left:
  call void @sideeffect0()
  ret void
}
Transformation doesn't verify!
ERROR: Source is more defined than target

Example:
i8 %v0 = #xff (255, -1)
i8 %v1 = poison

Source:
i1 %c0 = #x0 (0)
i1 %c1 = poison

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

Target:
i1 %c0 = #x0 (0)
i1 %c1 = 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/build/scripts/opt-alive.sh -S -simplifycfg -bonus-inst-threshold=10
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/SimplifyCFG/fold-branch-to-common-dest.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/fold-branch-to-common-dest.ll

 

<-- Back