Simplify code. No functionality change.

llvm-svn: 167505
This commit is contained in:
Jakub Staszak 2012-11-06 23:52:19 +00:00
parent 5290182856
commit 7d6ee3e1b4
1 changed files with 1 additions and 1 deletions

View File

@ -17179,7 +17179,7 @@ void X86TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
return;
case 'K':
if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
if ((int8_t)C->getSExtValue() == C->getSExtValue()) {
if (isInt<8>(C->getSExtValue())) {
Result = DAG.getTargetConstant(C->getZExtValue(), Op.getValueType());
break;
}