[all-commits] [llvm/llvm-project] 2d279c: [llvm] Add tests for upcoming fixes to pointer/ind...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Tue Feb 7 08:07:12 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d279c0d95d405098a6148cad6c9a68c92e6df4f
      https://github.com/llvm/llvm-project/commit/2d279c0d95d405098a6148cad6c9a68c92e6df4f
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2023-02-07 (Tue, 07 Feb 2023)

  Changed paths:
    A llvm/test/Transforms/InstCombine/alloca-intptr-not-sizet.ll
    A llvm/test/Transforms/SeparateConstOffsetFromGEP/pointer-type-not-offset-type.ll

  Log Message:
  -----------
  [llvm] Add tests for upcoming fixes to pointer/index type confusion.

Various parts of the codebase are using getIntPtrType() and its
relatives when getting the type of the offset argument to GEP. Most
such code has been updated to use the pointer index type field from
the data layout, but there is code that still assumes these two types
are the same in certain optimizaiton passes.

This commit adds regression tests to capture the old behavior.

Reviewed By: #amdgpu, arsenm

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




More information about the All-commits mailing list