gallivm: Workaround LLVM PR 27332.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 13 Apr 2016 14:41:55 +0000 (15:41 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 13 Apr 2016 15:42:55 +0000 (16:42 +0100)
commit9586468c03ba9d0c488882eba1d870acd7adfd9e
tree1d27d1bcd51ccae86dc3307c9da5d8e7681e1ec6
parentdd0a296895e9cf20399d038e9232d3d3b3fcc355
gallivm: Workaround LLVM PR 27332.

The credit for finding and isolating this bug goes to Vinson and Roland.

The buggy LLVM versions were found by doing

  opt -instcombine llvm-pr27332.ll > /dev/null

where llvm-pr27332.ll is the IR from
https://llvm.org/bugs/show_bug.cgi?id=27332#c3

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_arit.c