gallivm/ppc64le: adjust VSX code generation control.
authorBen Crocker <bcrocker@redhat.com>
Thu, 28 Sep 2017 18:09:12 +0000 (14:09 -0400)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 5 Oct 2017 00:13:47 +0000 (02:13 +0200)
commite93f056a4e5babde516c9ef53ae3547f68f1b824
tree9c0ae8104a8c022289e40cd8ff19520ef82d7f94
parent5c75f0c8bb876c1f4c85cda5ed10a4d632d24f56
gallivm/ppc64le: adjust VSX code generation control.

In lp_build_create_jit_compiler_for_module(), advance the minimum
version of LLVM for VSX code generation to 4.0; this is the minimum
revision at which several known VSX code generation bugs are fixed:

  https://llvm.org/bugs/show_bug.cgi?id=25503 (fixed in 3.8.1)
  https://llvm.org/bugs/show_bug.cgi?id=26775 (fixed in 3.8.1)
  https://llvm.org/bugs/show_bug.cgi?id=33531 (fixed in 4.0)

An llc performance bug introduced in LLVM 4.0,

  https://llvm.org/bugs/show_bug.cgi?id=34647

is still pending as of LLVM 5.0, but only has a pronounced effect on
one of the Piglit tests: ext_transform_feedback-max-varyings.

All changes tested via Piglit.

Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Ben Crocker <bcrocker@redhat.com>
Acked-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp