[PATCH] D65523: SROA: Check Total Bits of vector type

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 08:03:42 PDT 2019


arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.

This seems reasonable



================
Comment at: llvm/lib/Transforms/Scalar/SROA.cpp:1892-1896
+        VectorType *V = CandidateTys[0];
+        if (DL.getTypeSizeInBits(VTy) != DL.getTypeSizeInBits(V)) {
+          CandidateTys.clear();
+          return;
+        }
----------------
Can you add a comment that this is for bitcats to vectors with different numbers of elements?


Repository:
  rL LLVM

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

https://reviews.llvm.org/D65523





More information about the llvm-commits mailing list