[llvm] r239751 - Remove duplicate conditional in if-stmt.

Eric Christopher echristo at gmail.com
Mon Jun 15 13:16:53 PDT 2015


Author: echristo
Date: Mon Jun 15 15:16:53 2015
New Revision: 239751

URL: http://llvm.org/viewvc/llvm-project?rev=239751&view=rev
Log:
Remove duplicate conditional in if-stmt.

Fixes PR23839.

Modified:
    llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp

Modified: llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp?rev=239751&r1=239750&r2=239751&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp Mon Jun 15 15:16:53 2015
@@ -394,8 +394,7 @@ unsigned HexagonMCInstrInfo::getDuplexCa
     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;





More information about the llvm-commits mailing list