[PATCH] D71933: [SCCP] Use constant ranges for PHI nodes.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 27 08:26:50 PST 2019


fhahn created this revision.
fhahn added reviewers: davide, efriedma, mssimpso.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

For PHIs with multiple incoming values, we can improve precision by
using constant ranges for integers. We can over-approximate phis
by merging the incoming values.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71933

Files:
  llvm/lib/Transforms/Scalar/SCCP.cpp
  llvm/test/Transforms/SCCP/ip-constant-ranges.ll
  llvm/test/Transforms/SCCP/ip-ranges-phis.ll
  llvm/test/Transforms/SCCP/phis.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71933.235426.patch
Type: text/x-patch
Size: 12380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191227/781173dc/attachment.bin>


More information about the llvm-commits mailing list