[llvm] [CodeGen][NewPM] Port OptimizePHIs to NPM (PR #113433)

Akshat Oke via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 23 03:30:11 PDT 2024


================
@@ -33,47 +34,65 @@ STATISTIC(NumDeadPHICycles, "Number of dead PHI cycles");
 
 namespace {
 
-  class OptimizePHIs : public MachineFunctionPass {
-    MachineRegisterInfo *MRI = nullptr;
-    const TargetInstrInfo *TII = nullptr;
+class OptimizePHIs {
+  MachineRegisterInfo *MRI = nullptr;
+  const TargetInstrInfo *TII = nullptr;
 
-  public:
-    static char ID; // Pass identification
+public:
+  bool run(MachineFunction &Fn);
----------------
optimisan wrote:

It is from the existing legacy pass

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


More information about the llvm-commits mailing list