Test source: git
Source: /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll -- 1. ModuleToFunctionPassAdaptor -- 1. PassManager<Function> : Skipping NOP -- 2. ScalarizerPass ---------------------------------------- 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 } Transformation seems to be correct! (syntactically equal) -- 3. ScalarizerPass ---------------------------------------- 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, i64 0 %j.i0 = extractelement <2 x i32> %j, i64 0 %res.i0 = select i1 %b, i32 %i.i0, i32 %j.i0 %i.i1 = extractelement <2 x i32> %i, i64 1 %j.i1 = extractelement <2 x i32> %j, i64 1 %res.i1 = select i1 %b, i32 %i.i1, i32 %j.i1 %res.upto0 = insertelement <2 x i32> poison, i32 %res.i0, i64 0 %res = insertelement <2 x i32> %res.upto0, i32 %res.i1, i64 1 ret <2 x i32> %res } Transformation doesn't verify! (unsound) ERROR: Target is more poisonous than source Example: i1 %b = undef <2 x i32> %i = < poison, #x00000000 (0) [based on undef value] > <2 x i32> %j = < #x00000000 (0) [based on undef value], poison > Source: <2 x i32> %res = < poison, poison > Target: i32 %i.i0 = poison i32 %j.i0 = #x00000000 (0) i32 %res.i0 = poison i32 %i.i1 = #x00000000 (0) i32 %j.i1 = poison i32 %res.i1 = poison <2 x i32> %res.upto0 = < poison, poison > <2 x i32> %res = < poison, poison > Source value: < poison, poison > Target value: < poison, poison > Pass: ScalarizerPass 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' '/bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll' '-passes=function(scalarizer)' '-scalarize-load-store' '-S' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats' Wrote bitcode to: "/home/nlopes/alive2/build/logs/scatter-order_ynXCAcWB_XisQ.bc" ------------------- SMT STATS ------------------- Num queries: 16 Num invalid: 0 Num skips: 0 Num trivial: 7 (30.4%) Num timeout: 0 (0.0%) Num errors: 0 (0.0%) Num SAT: 12 (75.0%) Num UNSAT: 4 (25.0%) Alive2: Transform doesn't verify; aborting!
RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll -passes='function(scalarizer)' -scalarize-load-store -S | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll + /home/nlopes/alive2/build/opt-alive.sh /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll '-passes=function(scalarizer)' -scalarize-load-store -S + /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll FileCheck error: '<stdin>' is empty. FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/Scalarizer/scatter-order.ll
NOTE: This test would pass if undef didn't exist!