[PATCH] D83952: [SCCP] Add range metadata to call sites with known return ranges.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 07:34:11 PDT 2020


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

If we inferred a range for the function return value, we can add !range
at all call-sites of the function, if the range does not include undef.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83952

Files:
  llvm/lib/Transforms/Scalar/SCCP.cpp
  llvm/test/Transforms/SCCP/ip-add-range-to-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83952.278474.patch
Type: text/x-patch
Size: 4688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200716/87c5a29b/attachment.bin>


More information about the llvm-commits mailing list