[llvm] [indvars] Missing variables at Og: (PR #69920)
Carlos Alberto Enciso via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 7 22:33:42 PDT 2024
================
@@ -75,6 +77,13 @@ template <class BlockT, class LoopT> class LoopBase {
const LoopBase<BlockT, LoopT> &
operator=(const LoopBase<BlockT, LoopT> &) = delete;
+ // Induction variable exit value and its debug users, preserved by the
+ // 'indvars' pass, when it detects that the loop can be deleted and the
+ // there are no PHIs to be rewritten.
+ // For now, we only preserve single induction variables.
+ Value *IndVarFinalValue = nullptr;
+ SmallVector<WeakVH> IndVarDebugUsers;
----------------
CarlosAlbertoEnciso wrote:
It also introduced some link errors. Reverting the patch.
https://github.com/llvm/llvm-project/pull/69920
More information about the llvm-commits
mailing list