[all-commits] [llvm/llvm-project] 9553d6: [NFC][HWASan] Refactor hwasan pass

PiJoules via All-commits all-commits at lists.llvm.org
Tue Jun 28 12:09:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9553d695804c5f35fcc57566420f679863d4c61e
      https://github.com/llvm/llvm-project/commit/9553d695804c5f35fcc57566420f679863d4c61e
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2022-06-28 (Tue, 28 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

  Log Message:
  -----------
  [NFC][HWASan] Refactor hwasan pass

This moves some code for getting PC and SP into their own functions. Since SP
is also retrieved in the prologue and getting the stack tag, we can cache the
SP if we get it once in the prologue. This caching will really only be relevant
in D128387 where StackBaseTag may not be set in the prologue if __hwasan_tls
is not used.

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




More information about the All-commits mailing list