[PATCH] D107453: [SVE] Add folds for truncation of vscale
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 4 07:22:42 PDT 2021
sdesmalen added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp:971
+ .second;
+ if (Log2_32(MaxVScale) < DestWidth) {
+ Value *VScale = Builder.CreateVScale(ConstantInt::get(DestTy, 1));
----------------
This also requires a check that MaxVScale > 0, because according to the langref (`a value of 0 means unbounded`).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107453/new/
https://reviews.llvm.org/D107453
More information about the llvm-commits
mailing list