[all-commits] [llvm/llvm-project] 8d5e76: [ValueTracking] Update implied reasoning to accept...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Feb 7 02:27:59 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d5e76ac303a20e62aaeed78d4761c5cb66abfe3
      https://github.com/llvm/llvm-project/commit/8d5e76ac303a20e62aaeed78d4761c5cb66abfe3
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-02-07 (Fri, 07 Feb 2020)

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

  Log Message:
  -----------
  [ValueTracking] Update implied reasoning to accept expanded cmp (NFC).

This patch adds versions of isImpliedCondition and
isImpliedByDomCondition that take a predicate, LHS and RHS operands as
instead of a Value representing the condition.

This allows using those functions to check conditions without having a
concrete ICmp instruction.

Reviewers: nikic, RKSimon, lebedev.ri, spatel

Reviewed By: nikic

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




More information about the All-commits mailing list