[all-commits] [llvm/llvm-project] c302f1: [SCEV] Generalize SCEVEqualsPredicate to any compa...

Philip Reames via All-commits all-commits at lists.llvm.org
Tue Feb 8 08:18:25 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c302f1e6771b0cbfad466e56f19e36d4dcaecd11
      https://github.com/llvm/llvm-project/commit/c302f1e6771b0cbfad466e56f19e36d4dcaecd11
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/ScalarEvolution.h
    M llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

  Log Message:
  -----------
  [SCEV] Generalize SCEVEqualsPredicate to any compare [NFC]

PredicatedScalarEvolution has a predicate type for representing A == B.  This change generalizes it into something which can represent a A <pred> B.

This generality is currently unused, but is motivated by a couple of recent cases which have come up.  In particular, I'm currently playing around with using this to simplify the runtime checking code in LoopVectorizer. Regardless of the outcome of that prototyping, generalizing the compare node seemed useful.




More information about the All-commits mailing list