diff options
author | Sagar Ghuge <[email protected]> | 2020-06-08 15:35:29 -0700 |
---|---|---|
committer | Sagar Ghuge <[email protected]> | 2020-06-16 17:11:32 -0700 |
commit | a0ef4971d09ce23c0875c94468d20acd186e5be2 (patch) | |
tree | 578c2cafe5f163be3cb3503e30786b1d9da743f6 /src/intel/compiler | |
parent | d4f3f9390f07791e8c44e05386d1005d2bdb979f (diff) |
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 <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5341>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 1b0327e157e..a41d15270b9 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -2698,14 +2698,6 @@ fs_visitor::opt_algebraic() break; } - if (inst->src[0].file == IMM) { - assert(inst->src[0].type == BRW_REGISTER_TYPE_F); - inst->opcode = BRW_OPCODE_MOV; - inst->src[0].f *= inst->src[1].f; - inst->src[1] = reg_undef; - progress = true; - break; - } break; case BRW_OPCODE_ADD: if (inst->src[1].file != IMM) |