[PATCH] D75845: [ValueLattice] Add singlecrfromundef lattice value.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 06:24:45 PDT 2020
fhahn created this revision.
fhahn added reviewers: efriedma, nikic, reames, davide.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
This patch adds a new singlecrfromundef lattice value, indicating a
single element constant range which was merge with undef at some point.
Merging it with another constant range results in overdefined, as we
won't be able to replace all users with a single value.
This patch uses a ConstantRange instead of a Constant*, because regular
integer constants are represented as single element constant ranges as
well and this allows the existing code working without additional
changes.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75845
Files:
llvm/include/llvm/Analysis/ValueLattice.h
llvm/lib/Analysis/ValueLattice.cpp
llvm/test/Transforms/CorrelatedValuePropagation/merge-range-and-undef.ll
llvm/test/Transforms/SCCP/range-and-ip.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75845.249073.patch
Type: text/x-patch
Size: 5474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200309/8ab0343c/attachment.bin>
More information about the llvm-commits
mailing list