[PATCH] D105994: [SVE] Add folds for sign and zero extends of vscale
Dylan Fleming via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 21 11:59:59 PDT 2021
DylanFleming-arm updated this revision to Diff 360544.
DylanFleming-arm added a comment.
Added check for vscale_range attribute before optimisation
If the attribute isn't present, or if the maximum value exceeds the bitwidth of the original instrinsic, the optimization is skipped
Updated .ll test to test the extra logic
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105994/new/
https://reviews.llvm.org/D105994
Files:
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/vscale_sext_and_zext.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105994.360544.patch
Type: text/x-patch
Size: 4127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210721/5b59da83/attachment.bin>
More information about the llvm-commits
mailing list