[all-commits] [llvm/llvm-project] 4646ca: [SanitizerCoverage] Avoid unnecessary inttoptr

Alexander Richardson via All-commits all-commits at lists.llvm.org
Mon Dec 9 09:19:37 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4646cabf01c8ca8e301a75ee46c56ce76eb412e0
      https://github.com/llvm/llvm-project/commit/4646cabf01c8ca8e301a75ee46c56ce76eb412e0
  Author: Alexander Richardson <alexrichardson at google.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
    M llvm/test/Instrumentation/SanitizerCoverage/cmp-tracing-api-x86_32.ll
    M llvm/test/Instrumentation/SanitizerCoverage/missing_dbg.ll

  Log Message:
  -----------
  [SanitizerCoverage] Avoid unnecessary inttoptr

We are indexing into an array here, so we can use
CreateConstInBoundsGEP2_64 instead of the manual arithmetic.

Reviewed By: vitalybuka

Pull Request: https://github.com/llvm/llvm-project/pull/119097



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