clover/spirv: Don't call llvm::regularizeLlvmForSpirv
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 13 Aug 2020 20:12:15 +0000 (15:12 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 Aug 2020 23:18:08 +0000 (23:18 +0000)
commite3e45e2456d2dc7eccf03d7c93bc9cee823a1eec
tree95d5a7dfb5320be0e9bea5740d00c1c41d8ef5ac
parentc84e2784eb205c7cf9c74b9dbcd5a1b657f93aa4
clover/spirv: Don't call llvm::regularizeLlvmForSpirv

writeSpirv() already takes care of that, and calling it twice seems to
duplicate functions and cause problems when processing execution modes.

Fixes: 2043c5f37cf "clover/llvm: Add functions for compiling from..."
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6306>
src/gallium/frontends/clover/llvm/invocation.cpp