[all-commits] [llvm/llvm-project] d443cd: [ASan] Move early exit checks outside "instrumentF...

Hank Chang via All-commits all-commits at lists.llvm.org
Thu Mar 27 18:00:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d443cd62d289d972c0245488920acba2b14f7cf9
      https://github.com/llvm/llvm-project/commit/d443cd62d289d972c0245488920acba2b14f7cf9
  Author: Hank Chang <hank.chang at sifive.com>
  Date:   2025-03-28 (Fri, 28 Mar 2025)

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

  Log Message:
  -----------
  [ASan] Move early exit checks outside "instrumentFunction()" to avoid… (#133285)

… unnecessary FunctionSanitizer construction (NFC)

This patch moves several early-exit checks (e.g., empty function, etc.)
out of `AddressSanitizer::instrumentFunction` and into the caller. This
change avoids unnecessary construction of FunctionSanitizer when
instrumentation is not needed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list