[all-commits] [llvm/llvm-project] 259abf: [LAA] We only need pointer checks if there are non...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed May 27 04:38:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 259abfc7cbc11cd98c05b1eb8e4b3fb6a9664bc0
      https://github.com/llvm/llvm-project/commit/259abfc7cbc11cd98c05b1eb8e4b3fb6a9664bc0
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-05-27 (Wed, 27 May 2020)

  Changed paths:
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LAA] We only need pointer checks if there are non-zero checks (NFC).

If it turns out that we can do runtime checks, but there are no
runtime-checks to generate, set RtCheck.Need to false.

This can happen if we can prove statically that the pointers passed in
to canCheckPtrAtRT do not alias. This should not change any results, but
allows us to skip some work and assert that runtime checks are
generated, if LAA indicates that runtime checks are required.

Reviewers: anemet, Ayal

Reviewed By: Ayal

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




More information about the All-commits mailing list