[all-commits] [llvm/llvm-project] 739fa1: [indvars] Missing variables at Og: (#69920)

Carlos Alberto Enciso via All-commits all-commits at lists.llvm.org
Sun Apr 7 21:32:18 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 739fa1c84b92b8af7dceedf2e5ad808a64e85a57
      https://github.com/llvm/llvm-project/commit/739fa1c84b92b8af7dceedf2e5ad808a64e85a57
  Author: Carlos Alberto Enciso <carlos.alberto.enciso at gmail.com>
  Date:   2024-04-08 (Mon, 08 Apr 2024)

  Changed paths:
    M llvm/include/llvm/Support/GenericLoopInfo.h
    M llvm/include/llvm/Transforms/Utils/LoopUtils.h
    M llvm/lib/Transforms/Utils/LoopUtils.cpp
    A llvm/test/Transforms/IndVarSimplify/pr51735-1.ll
    A llvm/test/Transforms/IndVarSimplify/pr51735-2.ll
    A llvm/test/Transforms/IndVarSimplify/pr51735-3.ll
    A llvm/test/Transforms/IndVarSimplify/pr51735.ll

  Log Message:
  -----------
  [indvars] Missing variables at Og: (#69920)

https://bugs.llvm.org/show_bug.cgi?id=51735
https://github.com/llvm/llvm-project/issues/51077

In the given test case:
 ```
4 ...
 5 void bar() {
 6   int End = 777;
 7   int Index = 27;
 8   char Var = 1;
 9   for (; Index < End; ++Index)
10     ;
11   nop(Index);
12 }
13 ...
```
Missing local variable `Index` after loop `Induction Variable Elimination`. When adding a breakpoint at line `11`, LLDB does not have information on the variable. But it has info on `Var` and `End`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list