c-rhodes added inline comments.

================
Comment at: clang/lib/CodeGen/CGCall.cpp:2674
+      // perform the conversion.
+      if (Ty->getAs<VectorType>()) {
+        auto *Coerced = Fn->getArg(FirstIRArg);
----------------
joechrisellis wrote:
> c-rhodes wrote:
> > Do we want to check `VT->getVectorKind() == 
> > VectorType::SveFixedLengthDataVector` and 
> > `isa<llvm::ScalableVectorType>(Coerced->getType());`?
> Do we not also want to account for predicate vectors here?
> Do we not also want to account for predicate vectors here?

I think so, but as mentioned on D92761 it'll require more thought since the 
insert/extract intrinsics require the element type to be identical which they 
aren't for predicates (`i8` for VLST and `i1` for scalable).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92762/new/

https://reviews.llvm.org/D92762

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to