[PATCH] D71938: [SCCP] Use constant ranges for casts.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 27 08:41:28 PST 2019
fhahn created this revision.
fhahn added reviewers: davide, efriedma, mssimpso.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
fhahn added a parent revision: D60582: [IPSCCP] Use ValueLatticeElement instead of LatticeVal (NFCI).
For casts with constant range operands, we can use
ConstantRange::castOp.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71938
Files:
llvm/lib/Transforms/Scalar/SCCP.cpp
llvm/test/Transforms/SCCP/ip-ranges-casts.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71938.235430.patch
Type: text/x-patch
Size: 11121 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191227/4cca1b32/attachment.bin>
More information about the llvm-commits
mailing list