]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc: introduce the dep_fusion pass
authorJeff Law <jlaw@ventanamicro.com>
Sun, 7 Sep 2025 18:28:23 +0000 (12:28 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 7 Sep 2025 18:28:23 +0000 (12:28 -0600)
>> +
>> +  // opt_pass methods:
>> +  opt_pass *clone () override { return new pass_dep_fusion (m_ctxt); }
>> +  bool gate (function *) override;
>> +  unsigned int execute (function *) override;
>
> Wouldn't it be better to add 'final' along with 'override' to opt_pass
> vfuncs?
> (See commit 725793af78064fa605ea6d9376aaf99ecb71467b, etc.)Yea.  It's easily missed.  Fixed in the obvious way.

Bootstrapped and regression tested on x86_64.  Pushed to the trunk.

gcc/
* dep-fusion.cc: Mark clone, gate and execute methods as final.

gcc/dep-fusion.cc

index d040af6991ef1a6500e2210d32c2ea6d864798b5..bbd935118c5562dcbd691967105c5caf823993de 100644 (file)
@@ -61,9 +61,9 @@ public:
   {}
 
   // opt_pass methods:
-  opt_pass *clone () override { return new pass_dep_fusion (m_ctxt); }
-  bool gate (function *) override;
-  unsigned int execute (function *) override;
+  opt_pass *clone () final override { return new pass_dep_fusion (m_ctxt); }
+  bool gate (function *) final override;
+  unsigned int execute (function *) final override;
 };
 
 bool