[all-commits] [llvm/llvm-project] dfe650: [TBAA] Introduce test for PR96483 (NFC)

Antonio Frighetto via All-commits all-commits at lists.llvm.org
Thu Jul 25 00:29:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfe650cdc884af3298cb3378aa1631545a13b720
      https://github.com/llvm/llvm-project/commit/dfe650cdc884af3298cb3378aa1631545a13b720
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2024-07-25 (Thu, 25 Jul 2024)

  Changed paths:
    A llvm/test/Transforms/InstCombine/struct-assign-tbaa-2.ll

  Log Message:
  -----------
  [TBAA] Introduce test for PR96483 (NFC)


  Commit: 6ce7b1f86115f475ee00003ee04833781a675e3e
      https://github.com/llvm/llvm-project/commit/6ce7b1f86115f475ee00003ee04833781a675e3e
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2024-07-25 (Thu, 25 Jul 2024)

  Changed paths:
    M llvm/include/llvm/IR/Metadata.h
    M llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/struct-assign-tbaa-2.ll
    M llvm/test/Transforms/InstCombine/struct-assign-tbaa.ll
    R llvm/test/Transforms/SROA/tbaa-struct.ll
    M llvm/test/Transforms/SROA/tbaa-struct3.ll

  Log Message:
  -----------
  [TBAA] Do not rewrite TBAA if exists, always null out `!tbaa.struct`

Retrieve `!tbaa` metadata via `!tbaa.struct` in `adjustForAccess`
unless it already exists, as struct-path aware `MDNodes` emitted
via `new-struct-path-tbaa` may be leveraged. As `!tbaa.struct`
carries memcpy padding semantics among struct fields and `!tbaa`
is already meant to aid to alias semantics, it should be possible
to zero out `!tbaa.struct` once the memcpy has been simplified.
`SROA/tbaa-struct.ll` test has gone out of scope, as `!tbaa` has
already replaced `!tbaa.struct` in SROA.

Fixes: https://github.com/llvm/llvm-project/issues/95661.


Compare: https://github.com/llvm/llvm-project/compare/73d862e47873...6ce7b1f86115

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