[PATCH] D112859: [X86][VARARG] Assign MMO earlier to avoid prolog insert point been sunk across VASTART_SAVE_XMM_REGS

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 29 17:27:49 PDT 2021


pengfei created this revision.
pengfei added reviewers: avl, craig.topper, RKSimon, rnk, efriedma, LuoYuanke.
Herald added a subscriber: hiraditya.
pengfei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The changes in D80163 <https://reviews.llvm.org/D80163> defered the assignment of MachineMemOperand (MMO)
until the X86ExpandPseudo pass. This will result in crash due to prolog
insert point been sunk across the pseudo instruction VASTART_SAVE_XMM_REGS.

Moving the assignment to the creation of the node can avoid the problem.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112859

Files:
  llvm/lib/Target/X86/X86ExpandPseudo.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/lib/Target/X86/X86InstrCompiler.td
  llvm/lib/Target/X86/X86InstrInfo.td
  llvm/test/CodeGen/X86/vaargs-prolog-insert.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112859.383541.patch
Type: text/x-patch
Size: 7869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211030/44e1c11a/attachment.bin>


More information about the llvm-commits mailing list