[llvm] Propagate DebugLocs on phis in BreakCriticalEdges (PR #133492)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 04:56:18 PDT 2025
================
@@ -0,0 +1,49 @@
+; RUN: opt -passes='require<profile-summary>,function(codegenprepare)' -S -mtriple=x86_64 < %s \
+; RUN: | FileCheck %s
+
+;; Check debug locations are propagated onto new PHIs.
+
+; CHECK: .split:
+; CHECK-NEXT: %merge = phi i32 [ poison, %while.body ], [ %dest.sroa.clone, %while.body.clone ], !dbg [[DBG:!.*]]
----------------
OCHyams wrote:
I didn't think it was needed because there's only one !dbg on the input IR - but it couldn't hurt, done.
https://github.com/llvm/llvm-project/pull/133492
More information about the llvm-commits
mailing list