[PATCH] D81301: [X86] Emit two-byte NOP when possible

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 15 16:02:51 PDT 2020


aganea added inline comments.


================
Comment at: llvm/lib/Target/X86/X86MCInstLower.cpp:1358
+      // This is only for 32-bit targets, when using /arch:IA32 or /arch:SSE.
+      bool LegacyNop =
+          Subtarget->is32Bit() && Subtarget->isTargetWindowsMSVC() &&
----------------
craig.topper wrote:
> How much code would it be to just emit the legacy nop directly here and call emitNop for the other cases? Rather than pushing this legacy nop concept into emitNop?
Changed as suggested, looks better now, thanks!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81301/new/

https://reviews.llvm.org/D81301





More information about the llvm-commits mailing list