[all-commits] [llvm/llvm-project] b5a3b9: [SCEV] Add support for `x == constant` to CollectC...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Sep 25 08:57:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b5a3b901c73082c82f6eb387323cd61525423e2d
      https://github.com/llvm/llvm-project/commit/b5a3b901c73082c82f6eb387323cd61525423e2d
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-09-25 (Fri, 25 Sep 2020)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll

  Log Message:
  -----------
  [SCEV] Add support for `x == constant` to CollectCondition.

Add support for EQ predicates with constant operand. In that case, using
the constant instead of an unknown expression should always be
beneficial.




More information about the All-commits mailing list