[all-commits] [llvm/llvm-project] db7d86: [ADCE] Preserve MemorySSA if only debug instructio...

mikaelholmen via All-commits all-commits at lists.llvm.org
Tue Mar 7 22:33:54 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db7d8678bcdc440ffd0529f0d970cf10cbcbe984
      https://github.com/llvm/llvm-project/commit/db7d8678bcdc440ffd0529f0d970cf10cbcbe984
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ADCE.cpp
    A llvm/test/Transforms/ADCE/preserve-memoryssa-if-only-remove-debug.ll

  Log Message:
  -----------
  [ADCE] Preserve MemorySSA if only debug instructions are removed

As we've seen in
 https://github.com/llvm/llvm-project/issues/58285
throwing away MemorySSA when only debug instructions are removed can lead
to different code when debug info is present or not present.

This is the second attempt at fixing the problem. The first one was
 https://reviews.llvm.org/D145051
which was reverted due to a 15% compile time regression for tramp3d-v4
in NewPM-ReleaseLTO-g.




More information about the All-commits mailing list