radeonsi: call LLVMAddEarlyCSEMemSSAPass only for LLVM >= 4.0
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 8 Jun 2017 19:22:08 +0000 (21:22 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 8 Jun 2017 21:32:32 +0000 (23:32 +0200)
commita625d58ee19cd9f88af2ee76de604420c39f5afb
tree37ad8268f766f22c49d2de49fbcf6a726da9f4eb
parent69403617963681ed48fa937e978919b855aa4049
radeonsi: call LLVMAddEarlyCSEMemSSAPass only for LLVM >= 4.0

LLVMAddEarlyCSEMemSSAPass() is defined in LLVM 4.0.

Fixes: 257b538 ("radeonsi: do EarlyCSEMemSSA LLVM pass)
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c