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

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 10:56:36 PST 2024


https://github.com/jmorse commented:

For the change adding the "ExitBlock" field to the RewritePhi struct -- as far as understand it, the PHI being rewritten is always going to be in that exit block. Perhaps we could not store it in the struct and instead recover the exit block by calling `getParent()` on the PHI when necessary, instead? (This avoids two storing two pieces of information and having to think about whether they're in sync or not).

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


More information about the llvm-commits mailing list