[PATCH] D109883: [Analysis] Add support for vscale in computeKnownBitsFromOperator
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 16 07:08:21 PDT 2021
david-arm created this revision.
david-arm added reviewers: sdesmalen, dmgreen, DylanFleming-arm, kmclaughlin.
Herald added subscribers: foad, hiraditya.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
In ValueTracking.cpp we use a function called
computeKnownBitsFromOperator to determine the known bits of a value.
For the vscale intrinsic if the function contains the vscale_range
attribute we can use the maximum value of vscale to determine some
known zero bits. This should help to improve code quality by
allowing certain optimisations to take place.
Tests added here:
Transforms/InstCombine/icmp-vscale.ll
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109883
Files:
llvm/lib/Analysis/ValueTracking.cpp
llvm/test/Transforms/InstCombine/icmp-vscale.ll
llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-phi.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109883.372930.patch
Type: text/x-patch
Size: 7173 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210916/9b618e72/attachment.bin>
More information about the llvm-commits
mailing list