[DSE] Make DSEState non-copyable (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 26 Sep 2021 15:52:20 +0000 (17:52 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 26 Sep 2021 15:54:38 +0000 (17:54 +0200)
commitf3c74b72f45ec3e6ca2402468cb070d7e485e3d4
tree996700c510c8453d28f3531a0028459ac582d454
parent8cf93a35d4b873b5e50c152d00adfc3701c679ea
[DSE] Make DSEState non-copyable (NFC)

As it contains a self-reference, the default copy/move ctors
would not be safe.

Move the DSEState::get() method into the ctor to make sure no move
occurs here even without NRVO.

This is a speculative fix for test failures on
llvm-clang-x86_64-expensive-checks-win.
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp