]> granicus.if.org Git - llvm/commit
hwasan: Use llvm.read_register intrinsic to read the PC on aarch64 instead of taking...
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 27 Jun 2019 23:24:07 +0000 (23:24 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 27 Jun 2019 23:24:07 +0000 (23:24 +0000)
commit405de2bdbd73ca58ed3c2ced6cca9a6ef2a49722
tree8311074b9b189c0fa940c8882667988a8315772d
parent078da2b20a6a7bc7965a08d91ad7d1fd08cf69cf
hwasan: Use llvm.read_register intrinsic to read the PC on aarch64 instead of taking the function's address.

This shaves an instruction (and a GOT entry in PIC code) off prologues of
functions with stack variables.

Differential Revision: https://reviews.llvm.org/D63472

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364608 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
test/Instrumentation/HWAddressSanitizer/prologue.ll