[all-commits] [llvm/llvm-project] 40862b: [SROA] Propagate correct TBAA/TBAA Struct offsets

William Moses via All-commits all-commits at lists.llvm.org
Wed Feb 17 08:59:29 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 40862b1a7486a969ff044cd240aad24f4183cc10
      https://github.com/llvm/llvm-project/commit/40862b1a7486a969ff044cd240aad24f4183cc10
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M llvm/include/llvm/IR/Metadata.h
    M llvm/include/llvm/IR/Operator.h
    M llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
    M llvm/lib/IR/Operator.cpp
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/test/Transforms/SROA/basictest.ll
    A llvm/test/Transforms/SROA/tbaa-struct2.ll

  Log Message:
  -----------
  [SROA] Propagate correct TBAA/TBAA Struct offsets

SROA does not correctly account for offsets in TBAA/TBAA struct metadata.
This patch creates functionality for generating new MD with the corresponding
offset and updates SROA to use this functionality.

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




More information about the All-commits mailing list