[llvm] [RemoveDIs][DebugInfo] Handle DPVAssign in most transforms (PR #78986)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 22 07:33:25 PST 2024
================
@@ -1761,6 +1761,11 @@ bool SimplifyCFGOpt::hoistSuccIdenticalTerminatorToSwitchOrIf(
OtherSuccTI->replaceAllUsesWith(NT);
NT->takeName(I1);
}
+ // Also clone DPValues from the existing terminator, and all others (to
+ // duplicate existing hoisting behaviour).
+ NT->cloneDebugInfoFrom(I1);
+ for (Instruction *OtherSuccTI : OtherSuccTIs)
+ NT->cloneDebugInfoFrom(OtherSuccTI);
----------------
OCHyams wrote:
Which test (assuming tests will be added shortly) covers this change?
https://github.com/llvm/llvm-project/pull/78986
More information about the llvm-commits
mailing list