[PATCH] D116458: [X86] Improve selection of the mov instruction in FrameLowering

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 3 01:00:39 PST 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86FrameLowering.cpp:155
+    if (isUInt<32>(Imm))
+      return X86::MOV32ri64;
+    if (isInt<32>(Imm))
----------------
pengfei wrote:
> What's the difference to ues it rather than `MOV32ri`?
MOV32ri64 has GR64 as a regclass but otherwise is the same encoding. MOV32ri would require a SUBREG_TO_REG to convert the register class.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116458



More information about the llvm-commits mailing list