[all-commits] [llvm/llvm-project] cf9b3e: [IVDescriptors] Add assert to isInductionPhi to ch...

Vedant Paranjape via All-commits all-commits at lists.llvm.org
Thu Apr 27 22:29:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf9b3e55a21368cc10b4db7a83b188ee86430f87
      https://github.com/llvm/llvm-project/commit/cf9b3e55a21368cc10b4db7a83b188ee86430f87
  Author: Vedant Paranjape <vedant.paranjape at amd.com>
  Date:   2023-04-28 (Fri, 28 Apr 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/IVDescriptors.h
    M llvm/lib/Analysis/IVDescriptors.cpp

  Log Message:
  -----------
  [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis

Phis that are present inside loop headers can only be Induction Phis
legally. This patch adds an assertion to isInductionPhi which checks for
the said legality and it also updates the docs of the said function to
reflect the given legality.

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




More information about the All-commits mailing list