[all-commits] [llvm/llvm-project] bace7b: Backport 4878aa36d4a [ValueLattice] Add new state ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon May 18 18:56:55 PDT 2020


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: bace7beb530db8bd6ac79aa6e9f1323b3e52e38b
      https://github.com/llvm/llvm-project/commit/bace7beb530db8bd6ac79aa6e9f1323b3e52e38b
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-05-18 (Mon, 18 May 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/ValueLattice.h
    M llvm/lib/Analysis/LazyValueInfo.cpp
    M llvm/lib/Analysis/ValueLattice.cpp
    A llvm/test/Transforms/CorrelatedValuePropagation/merge-range-and-undef.ll
    A llvm/test/Transforms/JumpThreading/ne-undef.ll
    A llvm/test/Transforms/SCCP/float-phis.ll
    A llvm/test/Transforms/SCCP/int-phis.ll
    A llvm/test/Transforms/SCCP/range-and-ip.ll
    A llvm/test/Transforms/SCCP/range-and.ll
    M llvm/unittests/Analysis/ValueLatticeTest.cpp

  Log Message:
  -----------
  Backport 4878aa36d4a [ValueLattice] Add new state for undef constants.

Summary:
NOTE: I mostly put it on Phabricator to make it easy for other people to fetch & check if that fixes a bug.

This patch backports 4878aa36d4a and required earlier patches onto
the release/10.x branch.

It includes the following patches:

aa5ebfdf205de6d599c1fed3161da3b63b6f0bef [ValueLattice] Make mark* functions public, return if value changed.

c1943b42c5b7feff5d0e0c1358d02889e2be165f [ValueLattice] Update markConstantRange to return false equal ranges.

e30c257811f62fea21704caa961c61e4559de202 [CVP,SCCP] Precommit test for D75055.

4878aa36d4aa27df644430139fab2734fde4a000 [ValueLattice] Add new state for undef constants.

All patches except the last one apply cleanly. For the last one, the
changes to SCCP.cpp were stripped, because SCCP does not yet use
ValueLattice on release/10.x. Otherwise we would have to pull in more
additional changes.

Subscribers: tstellar, hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list