• Jason Ekstrand's avatar
    nir: Add a pass for lowering integer division by constants · 74492eba
    Jason Ekstrand authored
    It's a reasonably well-known fact in the world of compilers that integer
    divisions by constants can be replaced by a multiply, an add, and some
    shifts.  This commit adds such an optimization to NIR for easiest case
    of udiv.  Other division operations will be added in following commits.
    In order to provide some additional driver control, the pass takes a
    minimum bit size to optimize.
    
    Reviewed-by: Ian Romanick ian.d.romanick@intel.com
    74492eba
Name
Last commit
Last update
..
amd Loading commit data...
broadcom Loading commit data...
compiler Loading commit data...
egl Loading commit data...
freedreno Loading commit data...
gallium Loading commit data...
gbm Loading commit data...
getopt Loading commit data...
glx Loading commit data...
gtest Loading commit data...
hgl Loading commit data...
intel Loading commit data...
loader Loading commit data...
mapi Loading commit data...
mesa Loading commit data...
util Loading commit data...
vulkan Loading commit data...
Makefile.am Loading commit data...
SConscript Loading commit data...
meson.build Loading commit data...