[all-commits] [llvm/llvm-project] 0f5898: [hwasan] Refactor frame record info into function

PiJoules via All-commits all-commits at lists.llvm.org
Thu Jul 7 14:45:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f589826a301a48abbd11eb21e77f637cfd8ec1b
      https://github.com/llvm/llvm-project/commit/0f589826a301a48abbd11eb21e77f637cfd8ec1b
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
    M llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll

  Log Message:
  -----------
  [hwasan] Refactor frame record info into function

This way it can be reused easily in D128387.

Note this changes the IR slightly. Before The steps for calculating and storing the frame record info were:

1. getPC
2. getSP
3. inttoptr
4. or SP, PC
5. store

Now the steps are:

1. getPC
2. getSP
3. or SP, PC
4. inttoptr
5. store

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




More information about the All-commits mailing list