[PATCH] D87294: [IRSim][IROutliner] Adding support for elevating constants that are not the same in each region to arguments

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 16:15:34 PDT 2020


AndrewLitteken added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/IROutliner.cpp:596
+  // Remove the old instruction.
+  OldCall->eraseFromParent();
+  Region.Call = Call;
----------------
jroelofs wrote:
> I'd expect an RAUW... what if the call returns something?
The constructed functions do not return anything based on the CodeExtractor as they only contain single blocks.  Additionally, this function only exists once since the extraction of a region only results in one function.

After extraction we replace the different calls with a call to the aggregate function we created.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87294



More information about the llvm-commits mailing list