Index: llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp =================================================================== --- llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp +++ llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp @@ -291,7 +291,7 @@ // at machine code level, we don't need this, but if we decide // to move new value jump prior to RA, we would be needing this. MachineRegisterInfo &MRI = MF.getRegInfo(); - if (secondReg && !Register::isPhysicalRegister(cmpOp2)) { + if (!Register::isPhysicalRegister(cmpOp2)) { MachineInstr *def = MRI.getVRegDef(cmpOp2); if (def->getOpcode() == TargetOpcode::COPY) return false;