Test source: git
Comments: Alive2: no support for "vector-function-abi-variant"
Source: /bitbucket/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.ll -- 1. ModuleToFunctionPassAdaptor -- 1. PassManager<Function> : Skipping NOP -- 2. SLPVectorizerPass ---------------------------------------- declare float @memread(float) NNaN nofree willreturn memory(read) define <4 x float> @memread_4x(ptr %a) { entry: %#0 = load <4 x float>, ptr %a, align 16 %vecext = extractelement <4 x float> %#0, i32 0 %#1 = call float @memread(float %vecext) NNaN nofree willreturn memory(read) %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) NNaN nofree willreturn memory(read) %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) NNaN nofree willreturn memory(read) %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) NNaN nofree willreturn memory(read) %vecins.3 = insertelement <4 x float> %vecins.2, float %#4, i32 3 ret <4 x float> %vecins.3 } Transformation seems to be correct! (syntactically equal) -- 3. SLPVectorizerPass ---------------------------------------- declare float @memread(float) NNaN nofree willreturn memory(read) define <4 x float> @memread_4x(ptr %a) { entry: %#0 = load <4 x float>, ptr %a, align 16 %vecext = extractelement <4 x float> %#0, i32 0 %#1 = call float @memread(float %vecext) NNaN nofree willreturn memory(read) %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) NNaN nofree willreturn memory(read) %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) NNaN nofree willreturn memory(read) %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) NNaN nofree willreturn memory(read) %vecins.3 = insertelement <4 x float> %vecins.2, float %#4, i32 3 ret <4 x float> %vecins.3 } => declare <4 x float> @vmemread(<4 x float>) NNaN define <4 x float> @memread_4x(ptr %a) { entry: %#0 = load <4 x float>, ptr %a, align 16 %#1 = call <4 x float> @vmemread(<4 x float> %#0) NNaN ret <4 x float> %#1 } Transformation doesn't verify! (unsound) ERROR: Source is more defined than target Example: ptr %a = pointer(non-local, block_id=1, offset=0) Source: <4 x float> %#0 = < poison, poison, poison, poison > float %vecext = poison float %#1 = #x00000000 (+0.0) <4 x float> %vecins = < #x00000000 (+0.0), #x00000000 (+0.0), #x00000000 (+0.0), #x00000000 (+0.0) > float %vecext.1 = poison float %#2 = #x00000000 (+0.0) <4 x float> %vecins.1 = < #x00000000 (+0.0), #x00000000 (+0.0), #x00000000 (+0.0), #x00000000 (+0.0) > float %vecext.2 = poison float %#3 = #x00000000 (+0.0) <4 x float> %vecins.2 = < #x00000000 (+0.0), #x00000000 (+0.0), #x00000000 (+0.0), #x00000000 (+0.0) > float %vecext.3 = poison float %#4 = #x00000000 (+0.0) <4 x float> %vecins.3 = < #x00000000 (+0.0), #x00000000 (+0.0), #x00000000 (+0.0), #x00000000 (+0.0) > SOURCE MEMORY STATE =================== NON-LOCAL BLOCKS: Block 0 > size: 0 align: 8 alloc type: 0 alive: false address: 0 Block 1 > size: 128 align: 8 alloc type: 0 alive: true address: 16 Block 2 > size: 1 align: 8 alloc type: 0 alive: true Target: <4 x float> %#0 = < poison, poison, poison, poison > Function @vmemread triggered UB Pass: SLPVectorizerPass Command line: '/home/nlopes/llvm/build/bin/opt' '-load=/home/nlopes/alive2/build/tv/tv.so' '-load-pass-plugin=/home/nlopes/alive2/build/tv/tv.so' '-tv-exit-on-error' '-passes=slp-vectorizer' '-S' '/bitbucket/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.ll' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats' Wrote bitcode to: "/home/nlopes/alive2/build/logs/vectorizable-functions_22fjknXx_3zi8.bc" ------------------- SMT STATS ------------------- Num queries: 43 Num invalid: 0 Num skips: 0 Num trivial: 21 (32.8%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 31 (72.1%) Num UNSAT: 12 (27.9%) Alive2: Transform doesn't verify; aborting!
RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh -passes=slp-vectorizer -S /bitbucket/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.ll + /home/nlopes/alive2/build/opt-alive.sh -passes=slp-vectorizer -S /bitbucket/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.ll + /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.ll FileCheck error: '<stdin>' is empty. FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/SLPVectorizer/vectorizable-functions.ll