[PATCH] D115002: [ASan] Changed intrisic implemenation to use PLT safe registers.

Kirill Stoimenov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 2 15:00:31 PST 2021


kstoimenov created this revision.
Herald added subscribers: pengfei, hiraditya.
kstoimenov requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed clobbered registers to R10 <https://reviews.llvm.org/source/svn-test-suite/> and R11 <https://reviews.llvm.org/source/libunwind/> because PLT resolution clobbers them. Also changed in implementation to use R11 <https://reviews.llvm.org/source/libunwind/> instead of RCX, which saves a push/pop.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115002

Files:
  llvm/lib/Target/X86/X86InstrCompiler.td
  llvm/lib/Target/X86/X86MCInstLower.cpp
  llvm/lib/Target/X86/X86RegisterInfo.td
  llvm/test/CodeGen/X86/asan-check-memaccess-add.ll
  llvm/test/CodeGen/X86/asan-check-memaccess-or.ll
  llvm/test/CodeGen/X86/musttail-varargs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115002.391473.patch
Type: text/x-patch
Size: 33137 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211202/e9b7d916/attachment.bin>


More information about the llvm-commits mailing list