This is an archive of the discontinued LLVM Phabricator instance.

[Hexagon][NFC] Remove redundant condition
ClosedPublic

Authored by baloghadamsoftware on Jun 25 2020, 7:54 AM.

Details

Summary

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.

Diff Detail

Event Timeline

kparzysz accepted this revision.Jun 25 2020, 9:43 AM
This revision is now accepted and ready to land.Jun 25 2020, 9:43 AM
This revision was automatically updated to reflect the committed changes.