================ @@ -222,3 +223,38 @@ void SSAUpdaterBulk::RewriteAllUses(DominatorTree *DT, } } } + +// Perform a single pass of simplification over the worklist of PHIs. +static void SimplifyPass(MutableArrayRef<PHINode *> Worklist) { + if (Worklist.empty()) + return; + + const DataLayout &DL = Worklist.front()->getParent()->getDataLayout(); ---------------- arsenm wrote:
Pass this in as an argument? https://github.com/llvm/llvm-project/pull/135180 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits