[PATCH] D157549: [LV] Add debug output to print interleaved groups

Ayal Zaks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 04:12:09 PDT 2023


Ayal added inline comments.


================
Comment at: llvm/include/llvm/Analysis/VectorUtils.h:654
   uint32_t getNumMembers() const { return Members.size(); }
+  SmallVector<InstTy *> getMembers() const {
+    SmallVector<InstTy *> Mems;
----------------
Would it be better to have `InterleaveGroup::print(raw_ostream &OS)` take care of dumping its members, possibly along with their indices, designated InsertPos, and IG's Factor/Reverse/Alignment attributes?
Under `#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157549



More information about the llvm-commits mailing list