[all-commits] [llvm/llvm-project] 874c03: [Attributor] Use ConstantFoldLoadFromConst()

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Oct 10 01:20:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 874c0327e7e90d42198fd3aba5e3d636e0ba87c3
      https://github.com/llvm/llvm-project/commit/874c0327e7e90d42198fd3aba5e3d636e0ba87c3
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-10-10 (Mon, 10 Oct 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/Attributor/value-simplify-pointer-info-struct.ll

  Log Message:
  -----------
  [Attributor] Use ConstantFoldLoadFromConst()

When determining the initial value of the object, use the constant
folding API to load a given type at a given offset in the global
initializer. This makes it work for cases where the load doesn't
directly correspond to an aggregate member.

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




More information about the All-commits mailing list