[all-commits] [llvm/llvm-project] 00d3f7: [LAA] Make getPointersDiff() API compatible with o...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jun 23 09:46:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00d3f7cc3c264adc360d0282ba8a27de2a004b94
      https://github.com/llvm/llvm-project/commit/00d3f7cc3c264adc360d0282ba8a27de2a004b94
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-06-23 (Wed, 23 Jun 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/LoopAccessAnalysis.h
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/X86/opaque-ptr.ll

  Log Message:
  -----------
  [LAA] Make getPointersDiff() API compatible with opaque pointers

Make getPointersDiff() and sortPtrAccesses() compatible with opaque
pointers by explicitly passing in the element type instead of
determining it from the pointer element type.

The SLPVectorizer result is slightly non-optimal in that unnecessary
pointer bitcasts are added.

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




More information about the All-commits mailing list