intel/compiler: Remove unnecessary optimization for MUL
authorSagar Ghuge <sagar.ghuge@intel.com>
Mon, 8 Jun 2020 22:35:29 +0000 (15:35 -0700)
committerSagar Ghuge <sagar.ghuge@intel.com>
Wed, 17 Jun 2020 00:11:32 +0000 (17:11 -0700)
commita0ef4971d09ce23c0875c94468d20acd186e5be2
tree578c2cafe5f163be3cb3503e30786b1d9da743f6
parentd4f3f9390f07791e8c44e05386d1005d2bdb979f
intel/compiler: Remove unnecessary optimization for MUL

2 source instruction only support immediate for src1 operand, so no
point in adding optimization condition for src0 oprand.

v2:
- Update commit message and don't remove ADD optimization (Matt Turner)

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5341>
src/intel/compiler/brw_fs.cpp