[PATCH] D155193: [LangRef] vscale_range implies the vscale is power-of-two

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 13 06:05:10 PDT 2023


Allen created this revision.
Allen added reviewers: paulwalker-arm, nikic, david-arm, craig.topper.
Herald added subscribers: StephenFan, jdoerfert, hiraditya.
Herald added a project: All.
Allen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

According the discuss on D154953 <https://reviews.llvm.org/D154953>, we need to make the LangRef change
before the optimization relied on the new behaviour:

      vscale_range implies vscale is a power-of-two value, parse of the
  attribute to reject values that are not a power-of-two.


https://reviews.llvm.org/D155193

Files:
  llvm/docs/BitCodeFormat.rst
  llvm/docs/LangRef.rst
  llvm/lib/IR/Verifier.cpp
  llvm/test/Transforms/InstCombine/icmp-vscale.ll
  llvm/test/Transforms/InstCombine/vscale_sext_and_zext.ll
  llvm/test/Transforms/InstCombine/vscale_trunc.ll
  llvm/test/Verifier/vscale_range.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155193.539985.patch
Type: text/x-patch
Size: 7643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230713/50b191eb/attachment.bin>


More information about the llvm-commits mailing list