[llvm] [GVN] Do not create/destroy a local copy of GVNPassImpl in the run method (PR #229833)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 8 00:30:35 PDT 2026
================
@@ -76,10 +78,17 @@ struct GVNOptions {
};
class GVNPass : public OptionalPassInfoMixin<GVNPass> {
- GVNOptions Options;
+ std::unique_ptr<GVNPassImpl> Impl;
public:
- GVNPass(GVNOptions Options = {}) : Options(Options) {}
+ LLVM_ABI GVNPass(GVNOptions Options = {});
+ LLVM_ABI ~GVNPass();
+
+ LLVM_ABI GVNPass(GVNPass &&) noexcept;
+ LLVM_ABI GVNPass &operator=(GVNPass &&) noexcept;
----------------
aengelke wrote:
Are these ever called? (If so, where? If not, remove?)
https://github.com/llvm/llvm-project/pull/229833
More information about the llvm-commits
mailing list