[moco-tf] Remove redundant codes in FuseBinaryIntoPreceding (#6319)
author남궁석/On-Device Lab(SR)/Engineer/삼성전자 <sk.namkoong@samsung.com>
Wed, 7 Aug 2019 09:14:16 +0000 (18:14 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Wed, 7 Aug 2019 09:14:16 +0000 (18:14 +0900)
commit2c78e666f8cd2c2995591bcfcc1a83a3f84b9541
tree543a46a2a640a33986f392ed7f83a93d6080337b
parent2a7390a69f15e7c5ae68cfbe3026e9f7db54a3da
[moco-tf] Remove redundant codes in FuseBinaryIntoPreceding (#6319)

* [moco-tf] Remove redundant codes in FuseBinaryIntoPreceding

There are some redundant codes in `FuseBinaryIntoPreceding.cpp`
This commit will remove them.
- Exactly only one of variables(`xc` and `yc`) is `nullptr` because `is_only_one_valid` already checks.
- Then `addparam` and `mulparam` cannot be `nullptr`.
- After removing above condition, there can be only one case that `bchanged` can be returned, that is when `biasadd` is `nullptr`. However when `biasadd` is `nullptr`, bchanged is always `false`.

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* apply comments

* add missing codes

* fix comments

* apply comments
compiler/moco-tf/src/Transforms/FuseBinaryIntoPreceding.cpp