gallivm: remove LICM pass
authorRoland Scheidegger <sroland@vmware.com>
Mon, 23 Apr 2018 02:39:00 +0000 (04:39 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 24 Apr 2018 02:49:39 +0000 (04:49 +0200)
commit45b8f620a545bcdb8a4942bafd505c9418f6d9f2
tree9b8ae7903aeb29d7d753030fdc27ec4009b31ff0
parent8b9ab674b982289b1c18c93598139ec1e4bf829a
gallivm: remove LICM pass

LICM is simply too expensive, even though it presumably can help quite
a bit in some cases.
It was definitely cheaper in llvm 3.3, though as far as I can tell with
llvm 3.3 it failed to do anything in most cases. early-cse also actually
seems to cause licm to be able to move things when it previously couldn't,
which causes noticeable compile time increases.
There's more loop passes in llvm, but I'm not sure which ones are helpful,
and I couldn't find anything which would roughly do what the old licm in
llvm 3.3 did, so ditch it.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_init.c