diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-06-15 20:16:53 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-06-15 20:16:53 +0000 |
| commit | c30eae4567374237a942d277e6ff07d3285ca457 (patch) | |
| tree | 82cec5787188d22cf47f4ecba001755f6fa1b698 /llvm/lib | |
| parent | f2b1eb9eb2fb25f5263a2280646cc154b6532602 (diff) | |
| download | bcm5719-llvm-c30eae4567374237a942d277e6ff07d3285ca457.tar.gz bcm5719-llvm-c30eae4567374237a942d277e6ff07d3285ca457.zip | |
Remove duplicate conditional in if-stmt.
Fixes PR23839.
llvm-svn: 239751
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp index eb629774a2c..7e9247cef6a 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp @@ -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; |

