[PATCH] D106860: [clang][AArch64][SVE] Avoid going through memory for fixed/scalable predicate casts

JunMa via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 28 19:00:35 PDT 2021


junparser added inline comments.
Herald added a subscriber: ctetreau.


================
Comment at: clang/lib/CodeGen/CGExprScalar.cpp:2102
+          Src = Builder.CreateBitCast(Src, SrcTy);
+        }
         if (ScalableSrc->getElementType() == FixedDst->getElementType()) {
----------------
I think this may also works for casting between vectors with different element types.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106860



More information about the cfe-commits mailing list