[llvm] Port gisel cse analysis to npm (PR #179815)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 15 19:12:04 PST 2026
================
@@ -445,6 +445,19 @@ GISelCSEAnalysisWrapper::get(std::unique_ptr<CSEConfigBase> CSEOpt,
}
return Info;
}
+
+AnalysisKey GISelCSEAnalysis::Key;
+
+GISelCSEAnalysis::Result
+GISelCSEAnalysis::run(MachineFunction &MF, MachineFunctionAnalysisManager &) {
+ auto Info = std::make_unique<GISelCSEInfo>();
+
+ Info->setCSEConfig(getStandardCSEConfigForOpt(TM->getOptLevel()));
+ Info->analyze(MF);
+
----------------
boomanaiden154 wrote:
Nit: All the vertical whitespace in this function is probably unnecessary.
https://github.com/llvm/llvm-project/pull/179815
More information about the llvm-commits
mailing list