[all-commits] [llvm/llvm-project] 292ecb: [GVN] Add test for capture via vector GEP (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Dec 5 01:10:10 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 292ecb8b81fbd3784faa237d9f2613e5d962d488
      https://github.com/llvm/llvm-project/commit/292ecb8b81fbd3784faa237d9f2613e5d962d488
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-12-05 (Tue, 05 Dec 2023)

  Changed paths:
    M llvm/test/Transforms/GVN/captured-before.ll

  Log Message:
  -----------
  [GVN] Add test for capture via vector GEP (NFC)

Reported at:
https://github.com/llvm/llvm-project/pull/69931#issuecomment-1839475854


  Commit: 383e35048e16c85ab26bc46822d3ceb11fd4d3f2
      https://github.com/llvm/llvm-project/commit/383e35048e16c85ab26bc46822d3ceb11fd4d3f2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-12-05 (Tue, 05 Dec 2023)

  Changed paths:
    M llvm/lib/Analysis/CaptureTracking.cpp
    M llvm/test/Transforms/GVN/captured-before.ll

  Log Message:
  -----------
  [CaptureTracking] Treat vector GEPs as captures

Because AA does not support vectors of pointers, we have to
treat pointers that are inserted into a vector as captures. We
mostly already do so, but missed the case where getelementptr
is used to produce a vector.


Compare: https://github.com/llvm/llvm-project/compare/892abd34d220...383e35048e16


More information about the All-commits mailing list