[llvm] [indvars] Missing variables at Og (PR #88270)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 06:25:47 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) {
----------------
OCHyams wrote:
I think it makes sense to delete the DbgUsers parameter and do the `findDbgUsers` call from within this function?
(If you disagree, please update `DbgUsers` to be a const SmallVectorImpl reference or ArrayRef)
https://github.com/llvm/llvm-project/pull/88270
More information about the llvm-commits
mailing list