Remove unnecesary operations and calculations in loop body.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
Merge pull request #3482 from wangyan42164:ocl_brute_match_improve