[all-commits] [llvm/llvm-project] f3c74b: [DSE] Make DSEState non-copyable (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Sep 26 08:54:52 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3c74b72f45ec3e6ca2402468cb070d7e485e3d4
      https://github.com/llvm/llvm-project/commit/f3c74b72f45ec3e6ca2402468cb070d7e485e3d4
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-09-26 (Sun, 26 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list