[all-commits] [llvm/llvm-project] 1bf0c9: [ValueTracking][SVE] Fix isGEPKnownNonNull for sca...

huihzhang via All-commits all-commits at lists.llvm.org
Tue Mar 17 11:31:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bf0c9937583c344639f4c255cfed8478deecdb4
      https://github.com/llvm/llvm-project/commit/1bf0c9937583c344639f4c255cfed8478deecdb4
  Author: Huihui Zhang <huihuiz at quicinc.com>
  Date:   2020-03-17 (Tue, 17 Mar 2020)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/Transforms/InstSimplify/vscale.ll

  Log Message:
  -----------
  [ValueTracking][SVE] Fix isGEPKnownNonNull for scalable vector.

Summary:
DataLayout::getTypeAllocSize() return TypeSize. For cases where the
scalable property doesn't matter, we should explicitly call getKnownMinSize()
to avoid implicit type conversion to uint64_t, which is not valid for scalable
vector type.

Reviewers: sdesmalen, efriedma, apazos, reames

Reviewed By: efriedma

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list