]> granicus.if.org Git - llvm/commitdiff
[X86] Use isInt<8> to simplify some code. NFC
authorCraig Topper <craig.topper@intel.com>
Wed, 7 Aug 2019 06:17:55 +0000 (06:17 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 7 Aug 2019 06:17:55 +0000 (06:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368126 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp

index 54413fa1a02f7a0a283faf52294b94fce3dcec5b..ff42996bd67971787646bbbf8c3bd84458e37c22 100644 (file)
@@ -287,7 +287,7 @@ bool X86AsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
                                          const MCRelaxableFragment *DF,
                                          const MCAsmLayout &Layout) const {
   // Relax if the value is too big for a (signed) i8.
-  return int64_t(Value) != int64_t(int8_t(Value));
+  return !isInt<8>(Value);
 }
 
 // FIXME: Can tblgen help at all here to verify there aren't other instructions