[PATCH] D141065: IROutliner: Fix another assert with non-0 alloca addrspaces

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 5 08:15:28 PST 2023


AndrewLitteken added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/IROutliner.cpp:1335
     for (unsigned Jdx = TypeIndex; Jdx < ArgumentSize; Jdx++) {
-      if (Group.ArgumentTypes[Jdx] != PointerType::getUnqual(Output->getType()))
+      if (!isa<PointerType>(Group.ArgumentTypes[Jdx]))
         continue;
----------------
What's the reasoning behind removing the check for the type of pointer and making it only care about whether it is a pointer?  There can be multiple sets outputs to an set of extracted function and (as I understand it) the previous check looked checked that the argument type is a pointer to a specific type as well to not encounter errors later on.


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

https://reviews.llvm.org/D141065



More information about the llvm-commits mailing list