Details
- Reviewers
spatel nikic lebedev.ri - Commits
- rGde80b53d1acf: [InstCombine] Use range for loops (NFC)
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Apologies for the size of this cleanup change - the changes were mostly mechanical, aside from having to check for iterator invalidation issues (I did not find any).
I'm new to LLVM development, so please let me know if it's preferred to split this into smaller changes, or if these changes cause too much churn to be considered worthwhile - happy to scope it more tightly if so!
llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp | ||
---|---|---|
194 | Iterating over BB->phis() would be more elegant here. |
That's more cleanup than I was expecting. :)
I think it's all worth doing, but let's commit the capitalization and other small (else-after-return, etc.) changes first. The range-for diffs can expose subtle logic changes, so that can be its own patch or set of patches to limit risk.
Apologies for the long-delayed response on these changes. I've split out the trivial changes into D118553 - does that look reasonable? I'm not an LLVM committer, so would you mind landing the changes in this series for me once they are approved? Thanks!
Iterating over BB->phis() would be more elegant here.