[X86] Merge X86MCInstLowering's maxLongNopLength into emitNop and remove check for...
authorCraig Topper <craig.topper@intel.com>
Sun, 26 Jul 2020 05:05:46 +0000 (22:05 -0700)
committerCraig Topper <craig.topper@intel.com>
Sun, 26 Jul 2020 05:11:47 +0000 (22:11 -0700)
commit1a1448e6568d9b11f198e510fa9c4cb6b1f4216a
treeaa11ab3de44fc30e4b2a0aa8a5c06f07a3429cf5
parent14c59b4577658655e56671bf2f17cca9c0d952d9
[X86] Merge X86MCInstLowering's maxLongNopLength into emitNop and remove check for FeatureNOPL.

The switch in emitNop uses 64-bit registers for nops exceeding
2 bytes. This isn't valid outside 64-bit mode. We could fix this
easily enough, but there are no users that ask for more than 2
bytes outside 64-bit mode.

Inlining the method to make the coupling between the two methods
more explicit.
llvm/lib/Target/X86/X86MCInstLower.cpp