[Hexagon][NFC] Remove redundant condition
authorAdam Balogh <adam.balogh@ericsson.com>
Thu, 25 Jun 2020 13:48:10 +0000 (15:48 +0200)
committerAdam Balogh <adam.balogh@ericsson.com>
Wed, 1 Jul 2020 07:04:26 +0000 (09:04 +0200)
commitec5ba353fab79d2201f63485117682756da31d46
tree584e9862d05750a638250b7bbca92b062d50e934
parent71c6a36018dd3e3a8f709d4a6f81a6d3ce56d780
[Hexagon][NFC] Remove redundant condition

Condition `secondReg` is checked both in an outer and in an inner `if`
statement in static function `canCompareBeNewValueJump()` in file
`HexagonNewValueJump.cpp`. This patch removes the redundant inner check.

The issue was found using `clang-tidy` check under review
`misc-redundant-condition`. See https://reviews.llvm.org/D81272.

Differential Revision: https://reviews.llvm.org/D82556
llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp