[PATCH] D73475: [X86] Make sure we do not clobber RBX with mwaitx when used as a base pointer.

pierre gousseau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 05:20:08 PDT 2020


pgousseau updated this revision to Diff 287013.
pgousseau added a comment.

Updated the patch to handle the case described in PR42064 where a separate basic block demands the use of a base pointer.
In that case we do the codegen of mwaitx during custom insertion.


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

https://reviews.llvm.org/D73475

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/base-pointer-and-mwaitx.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73475.287013.patch
Type: text/x-patch
Size: 16446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200821/b9f9d92e/attachment.bin>


More information about the llvm-commits mailing list