[all-commits] [llvm/llvm-project] c2634f: [Analysis] Fix issues when querying vscale attribu...

david-arm via All-commits all-commits at lists.llvm.org
Fri Sep 24 01:58:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2634fc6abe73acf0d9c4421071948e43d96d7eb
      https://github.com/llvm/llvm-project/commit/c2634fc6abe73acf0d9c4421071948e43d96d7eb
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2021-09-24 (Fri, 24 Sep 2021)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/unittests/Analysis/ValueTrackingTest.cpp

  Log Message:
  -----------
  [Analysis] Fix issues when querying vscale attributes on functions

There are several places in the code that are currently broken as
they assume an Instruction always has a parent Function when
attempting to get the vscale_range attribute. This patch adds checks
that an Instruction has a parent.

I've added a test for a parentless @llvm.vscale intrinsic call here:

  unittests/Analysis/ValueTrackingTest.cpp

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




More information about the All-commits mailing list