[all-commits] [llvm/llvm-project] 8e4f7b: [Analysis] Fix another issue when querying vscale ...

david-arm via All-commits all-commits at lists.llvm.org
Fri Sep 24 05:56:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e4f7b749c2c03809f022c95698686c8584097fc
      https://github.com/llvm/llvm-project/commit/8e4f7b749c2c03809f022c95698686c8584097fc
  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/unittests/Analysis/ValueTrackingTest.cpp

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

There are several places in the code that are currently broken where
we assume an Instruction is always a member of a BasicBlock that
lives in a Function. This is a problem specifically when
attempting to get the vscale_range attribute. This patch adds checks
that an Instruction's parent also has a parent!

I've added a test for a function-less @llvm.vscale intrinsic call here:

  unittests/Analysis/ValueTrackingTest.cpp




More information about the All-commits mailing list