[llvm] [indvars] Missing variables at Og (PR #88270)

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 22:40:30 PDT 2024


================
@@ -392,13 +394,35 @@ class LLVM_EXTERNAL_VISIBILITY Loop : public LoopBase<BasicBlock, Loop> {
     return "<unnamed loop>";
   }
 
+  /// Preserve the induction variable exit value and its debug users by the
+  /// 'indvars' pass if the loop can deleted. Those debug users will be used
+  /// by the 'loop-delete' pass.
+  void preserveDebugInductionVariableInfo(
+      Value *FinalValue, SmallVector<DbgVariableIntrinsic *> DbgUsers) {
----------------
CarlosAlbertoEnciso wrote:

To avoid adding a dependency on `DebugInfo.h`, making `DbgUsers` to be `const SmallVectorImpl reference`.

https://github.com/llvm/llvm-project/pull/88270


More information about the llvm-commits mailing list