[X86] Use isInt<8> to simplify some code. NFC

llvm-svn: 368126
This commit is contained in:
Craig Topper 2019-08-07 06:17:55 +00:00
parent c6551bf013
commit 624980037d
1 changed files with 1 additions and 1 deletions

View 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