nir: don't emit ishl in _nir_mul_imm() if backend doesn't support bitops
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 23 Jan 2020 04:29:50 +0000 (20:29 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 21:16:22 +0000 (21:16 +0000)
commit3c754900b5f689b821cbb1162b821ce12bcaf23e
treeb5189f364bf1ae8207f4bf446c9e8f301751f38a
parentcf2c5a56a1bc9f14e4c84db7a08739a195156844
nir: don't emit ishl in _nir_mul_imm() if backend doesn't support bitops

Otherwise we'll have to lower it later.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3529>
src/compiler/nir/nir_builder.h