Skip to content

Commit

Permalink
Remove duplicate conditional in if-stmt.
Browse files Browse the repository at this point in the history
Fixes PR23839.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239751 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed Jun 15, 2015
1 parent 1456b12 commit e99f30c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,7 @@ unsigned HexagonMCInstrInfo::getDuplexCandidateGroup(MCInst const &MCI) {
Src1Reg = MCI.getOperand(0).getReg();
if (HexagonMCInstrInfo::isIntRegForSubInst(Src1Reg) &&
MCI.getOperand(1).isImm() && isUInt<4>(MCI.getOperand(1).getImm()) &&
MCI.getOperand(2).isImm() && MCI.getOperand(2).isImm() &&
isUInt<1>(MCI.getOperand(2).getImm())) {
MCI.getOperand(2).isImm() && isUInt<1>(MCI.getOperand(2).getImm())) {
return HexagonII::HSIG_S2;
}
break;
Expand Down

0 comments on commit e99f30c

Please sign in to comment.