HomePhabricator

[Hexagon][NFC] Remove redundant condition

Authored by baloghadamsoftware on Jun 25 2020, 6:48 AM.

Description

[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

Details

Committed
baloghadamsoftwareJul 1 2020, 12:04 AM
Differential Revision
D82556: [Hexagon][NFC] Remove redundant condition
Parents
rG71c6a36018dd: [AMDGPU][NFC] Remove redundant condition
Branches
Unknown
Tags
Unknown