Simplify code. No functionality change.
authorJakub Staszak <kubastaszak@gmail.com>
Tue, 6 Nov 2012 23:52:19 +0000 (23:52 +0000)
committerJakub Staszak <kubastaszak@gmail.com>
Tue, 6 Nov 2012 23:52:19 +0000 (23:52 +0000)
llvm-svn: 167505

llvm/lib/Target/X86/X86ISelLowering.cpp

index 8c4c3e2..920cbf2 100644 (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;
       }