Test Failure: Transforms/Scalarizer/scatter-order.ll

Test source: git

Log:

Source: /home/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll

----------------------------------------
define <2 x i32> @test1(i1 %b, <2 x i32> %i, <2 x i32> %j) {
%0:
  %res = select i1 %b, <2 x i32> %i, <2 x i32> %j
  ret <2 x i32> %res
}
=>
define <2 x i32> @test1(i1 %b, <2 x i32> %i, <2 x i32> %j) {
%0:
  %i.i0 = extractelement <2 x i32> %i, i32 0
  %j.i0 = extractelement <2 x i32> %j, i32 0
  %res.i0 = select i1 %b, i32 %i.i0, i32 %j.i0
  %i.i1 = extractelement <2 x i32> %i, i32 1
  %j.i1 = extractelement <2 x i32> %j, i32 1
  %res.i1 = select i1 %b, i32 %i.i1, i32 %j.i1
  %res.upto0 = insertelement <2 x i32> undef, i32 %res.i0, i32 0
  %res = insertelement <2 x i32> %res.upto0, i32 %res.i1, i32 1
  ret <2 x i32> %res
}
Transformation doesn't verify!
ERROR: Target is more poisonous than source

Example:
i1 %b = undef
<2 x i32> %i = < any, poison >
<2 x i32> %j = < poison, any >

Source:
<2 x i32> %res = < poison, poison >

Target:
i32 %i.i0 = any
i32 %j.i0 = poison
i32 %res.i0 = poison
i32 %i.i1 = poison
i32 %j.i1 = any
i32 %res.i1 = poison
<2 x i32> %res.upto0 = < poison, any >
<2 x i32> %res = < poison, poison >
Source value: < poison, poison >
Target value: < poison, poison >


------------------- SMT STATS -------------------
Num queries: 7
Num invalid: 0
Num skips:   0
Num trivial: 2 (22.2%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     2 (28.6%)
Num UNSAT:   5 (71.4%)

stderr:

+ : 'RUN: at line 2'
+ /home/nlopes/alive2/build/opt-alive.sh /home/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll -scalarizer -scalarize-load-store -S
+ /home/nlopes/llvm/build/bin/FileCheck --allow-unused-prefixes=false /home/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll

Alive2: Transform doesn't verify; aborting!
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nlopes/llvm/build/bin/FileCheck --allow-unused-prefixes=false /home/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll

 

NOTE: This test would pass if undef didn't exist!

 

<-- Back