[PATCH] D146217: [ValueTracking] Support vscale in computeConstantRange()

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 16 04:52:53 PDT 2023


nikic created this revision.
nikic added reviewers: paulwalker-arm, sdesmalen, reames.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add support for vscale in computeConstantRange(), based on vscale_range attributes. This allows simplifying based on the precise range, rather than a KnownBits approximation (which will be off by a factor of two for the usual case of a power of two upper bound).


https://reviews.llvm.org/D146217

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/test/Transforms/InstCombine/icmp-vscale.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146217.505770.patch
Type: text/x-patch
Size: 3761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230316/76d2c9d1/attachment.bin>


More information about the llvm-commits mailing list