[PATCH] D128926: [AArch64] NFC: Move safe predicate casting to a separate function.
Paul Walker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 30 10:33:51 PDT 2022
paulwalker-arm added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:21388-21389
"Cannot cast between data and predicate scalable vector types!");
+ assert(VT.getVectorElementType() != MVT::i1 &&
+ "For predicate bitcasts, use getSVESafePredicateBitCast");
----------------
Please add `InVT.getVectorElementType() != MVT::i1 &&` and remove the previous assert.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128926/new/
https://reviews.llvm.org/D128926
More information about the llvm-commits
mailing list