[polly] [Polly] Use separate DT/LI/SE for outlined subfn. NFC. (PR #102460)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 07:26:47 PDT 2024


================
@@ -162,8 +162,21 @@ class BlockGenerator {
   /// The dominator tree of this function.
   DominatorTree &DT;
 
-  /// The entry block of the current function.
-  BasicBlock *EntryBB;
+  /// Relates to the region where the code is emitted into.
+  /// @{
+  DominatorTree *GenDT;
+  LoopInfo *GenLI;
+  ScalarEvolution *GenSE;
+  /// @}
+
+public:
+  /// Change the function that code is emitted into.
+  void switchGeneratedFunc(Function *GenFn, DominatorTree *GenDT,
----------------
aengelke wrote:

GenFn unused? Also in IslExprBuilder.h

https://github.com/llvm/llvm-project/pull/102460


More information about the llvm-commits mailing list