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

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 04:50:29 PST 2024


CarlosAlbertoEnciso wrote:

> 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).

Good point. Removed the added field.

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


More information about the llvm-commits mailing list