[llvm] [LCSSA] Cache the loop exit blocks across recursive analysis (NFC) (PR #101087)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 14:55:34 PDT 2024


================
@@ -74,21 +74,17 @@ static bool isExitBlock(BasicBlock *BB,
 /// For every instruction from the worklist, check to see if it has any uses
 /// that are outside the current loop.  If so, insert LCSSA PHI nodes and
 /// rewrite the uses.
-bool llvm::formLCSSAForInstructions(SmallVectorImpl<Instruction *> &Worklist,
-                                    const DominatorTree &DT, const LoopInfo &LI,
-                                    ScalarEvolution *SE,
-                                    SmallVectorImpl<PHINode *> *PHIsToRemove,
-                                    SmallVectorImpl<PHINode *> *InsertedPHIs) {
+static bool formLCSSAForInstructionsWorker(
----------------
nikic wrote:

```suggestion
static bool formLCSSAForInstructionsImpl(
```
or alternatively give it the same name as the exported function and call it fully qualified with `::` prefix.

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


More information about the llvm-commits mailing list