[PATCH] D104468: [Verifier] Fail on overrunning and invalid indices for {insert,extract} vector intrinsics
Paul Walker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 18 09:37:38 PDT 2021
paulwalker-arm added inline comments.
================
Comment at: llvm/lib/IR/Verifier.cpp:5375-5376
+ if (VecEC.isScalable() == ResultEC.isScalable()) {
+ Assert(IdxN + ResultEC.getKnownMinValue() <= VecEC.getKnownMinValue(),
+ "experimental_vector_extract would overrun.");
+ }
----------------
paulwalker-arm wrote:
> Same wrapping comment as above.
This also needs `IdxN < VecEC.getKnownMinValue`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104468/new/
https://reviews.llvm.org/D104468
More information about the llvm-commits
mailing list