[all-commits] [llvm/llvm-project] b9337b: [ADCE] Preserve MemorySSA if only debug instructio...
mikaelholmen via All-commits
all-commits at lists.llvm.org
Tue Mar 7 22:36:48 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b9337b108ec8fdfc716bbbb1184cbbd3b743e137
https://github.com/llvm/llvm-project/commit/b9337b108ec8fdfc716bbbb1184cbbd3b743e137
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.
Differential Revision: https://reviews.llvm.org/D145478
More information about the All-commits
mailing list