Test Failure: Transforms/SLPVectorizer/vectorizable-functions.ll

Test source: git

Comments: Alive2: no support for "vector-function-abi-variant"

Log:

Source: /home/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.ll

----------------------------------------
define <4 x float> @memread_4x(* %a) {
%entry:
  %0 = load <4 x float>, * %a, align 16
  %vecext = extractelement <4 x float> %0, i32 0
  %1 = call float @memread(float %vecext) nowrite NNaN nofree
  %vecins = insertelement <4 x float> undef, float %1, i32 0
  %vecext.1 = extractelement <4 x float> %0, i32 1
  %2 = call float @memread(float %vecext.1) nowrite NNaN nofree
  %vecins.1 = insertelement <4 x float> %vecins, float %2, i32 1
  %vecext.2 = extractelement <4 x float> %0, i32 2
  %3 = call float @memread(float %vecext.2) nowrite NNaN nofree
  %vecins.2 = insertelement <4 x float> %vecins.1, float %3, i32 2
  %vecext.3 = extractelement <4 x float> %0, i32 3
  %4 = call float @memread(float %vecext.3) nowrite NNaN nofree
  %vecins.3 = insertelement <4 x float> %vecins.2, float %4, i32 3
  ret <4 x float> %vecins.3
}
=>
define <4 x float> @memread_4x(* %a) {
%entry:
  %0 = load <4 x float>, * %a, align 16
  %1 = call <4 x float> @vmemread(<4 x float> %0) NNaN
  %2 = extractelement <4 x float> %1, i32 0
  %vecins = insertelement <4 x float> undef, float %2, i32 0
  %3 = extractelement <4 x float> %1, i32 1
  %vecins.1 = insertelement <4 x float> %vecins, float %3, i32 1
  %4 = extractelement <4 x float> %1, i32 2
  %vecins.2 = insertelement <4 x float> %vecins.1, float %4, i32 2
  %5 = extractelement <4 x float> %1, i32 3
  %vecins.3 = insertelement <4 x float> %vecins.2, float %5, i32 3
  ret <4 x float> %vecins.3
}
Transformation doesn't verify!
ERROR: Source is more defined than target

Example:
* %a = pointer(non-local, block_id=1, offset=96)

Source:
<4 x float> %0 = < poison, poison, poison, #x00000000 (+0.0) >
float %vecext = poison
float %1 = poison
<4 x float> %vecins = < poison, #x00000000 (+0.0)	[based on undef value], #x00000000 (+0.0), #x00000000 (+0.0) >
float %vecext.1 = poison
float %2 = poison
<4 x float> %vecins.1 = < poison, poison, #x00000000 (+0.0), #x00000000 (+0.0) >
float %vecext.2 = poison
float %3 = poison
<4 x float> %vecins.2 = < poison, poison, poison, #x00000000 (+0.0) >
float %vecext.3 = #x00000000 (+0.0)
float %4 = poison
<4 x float> %vecins.3 = < poison, poison, poison, poison >

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

Target:
<4 x float> %0 = < poison, poison, poison, #x00000000 (+0.0) >
<4 x float> %1 = < poison, poison, poison, poison >
float %2 = poison
<4 x float> %vecins = < poison, #x00000000 (+0.0)	[based on undef value], #x00000000 (+0.0), #x00000000 (+0.0) >
float %3 = poison
<4 x float> %vecins.1 = < poison, poison, #x00000000 (+0.0), #x00000000 (+0.0) >
float %4 = poison
<4 x float> %vecins.2 = < poison, poison, poison, #x00000000 (+0.0) >
float %5 = poison
<4 x float> %vecins.3 = < poison, poison, poison, poison >



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

stderr:

+ : 'RUN: at line 2'
+ /home/nlopes/alive2/build/opt-alive.sh -slp-vectorizer -S /home/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.ll
+ /home/nlopes/llvm/build/bin/FileCheck --allow-unused-prefixes=false /home/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.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/SLPVectorizer/vectorizable-functions.ll

 

<-- Back