[PATCH] D142234: [LVI] Handle Intrinsic::ctlz
Antonio Frighetto via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 20 09:36:56 PST 2023
antoniofrighetto created this revision.
antoniofrighetto added reviewers: nikic, reames.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
antoniofrighetto requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
LazyValueInfo may now propagate information about constant and constant ranges lattice values to `ctlz` (count leading zeroes) intrinsics. The change makes sure to provide a more precise result than it was formerly produced, where possible, or a more conservative one (e.g., should the first argument value be zero and is_zero_poison true, the result would be an overdefined value), but always correct.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142234
Files:
llvm/lib/Analysis/LazyValueInfo.cpp
llvm/test/Analysis/LazyValueAnalysis/lvi-for-ctlz.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142234.490893.patch
Type: text/x-patch
Size: 6826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230120/0963cbe3/attachment.bin>
More information about the llvm-commits
mailing list