nir: Add optimization to use ROR/ROL instructions
authorSagar Ghuge <sagar.ghuge@intel.com>
Thu, 30 May 2019 21:15:51 +0000 (14:15 -0700)
committerSagar Ghuge <sagar.ghuge@intel.com>
Mon, 1 Jul 2019 17:14:22 +0000 (10:14 -0700)
commit80117117bda10144df57614e718b8c19ee7afdf4
tree478f0ec898cc89f0f5d5bf1b3980cc06595ee055
parent81d342e2a14d9d4260d3b03ed2c257c8ae8388bc
nir: Add optimization to use ROR/ROL instructions

v2: 1) Add more optimization rules for ROL/ROR (Matt Turner)
    2) Add lowering rules for ROL/ROR (Matt Turner)

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_algebraic.py