swr/rast: Use llvm intrinsic masked gather
authorGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 2 Feb 2018 23:03:01 +0000 (17:03 -0600)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 16 Feb 2018 16:54:01 +0000 (10:54 -0600)
commite12db47a7ddcee6f26409b5b1dd722747560597d
tree1a6f16136979ac695af1f08604b179caafe4e896
parent9cc9688e4972542fc8fcebbd6d29edb28b2fe472
swr/rast: Use llvm intrinsic masked gather

Use llvm intrinsic masked.gather instead of manual unroll for the cases
where we have vector of pointers.  Improves llvm IR debug experience by
reducing a ton of IR to a single intrinsic call. Also seems to reduce
overall stack use considerably.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp
src/gallium/drivers/swr/rasterizer/jitter/builder_mem.h