[PATCH] D99482: [PoC][Clang][CodeGen] Do not use getelementptr for scalable struct.

Fraser Cormack via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 31 06:33:02 PDT 2021


frasercrmck added a comment.

Are there any tests for this?



================
Comment at: clang/lib/CodeGen/CGCall.cpp:1299
                                          bool DestIsVolatile) {
   // Prefer scalar stores to first-class aggregate stores.
   if (llvm::StructType *STy = dyn_cast<llvm::StructType>(Val->getType())) {
----------------
This comment might need to be sunk as it doesn't apply to structs containing scalable vectors?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99482



More information about the cfe-commits mailing list