Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Avoid unnecessary copies in for loops. NFC.#23205

Merged
kuhar merged 3 commits into
iree-org:mainfrom
kuhar:fix-for-loop-copies
Jan 20, 2026
Merged

Avoid unnecessary copies in for loops. NFC.#23205
kuhar merged 3 commits into
iree-org:mainfrom
kuhar:fix-for-loop-copies

Conversation

@kuhar
Copy link
Copy Markdown
Member

@kuhar kuhar commented Jan 20, 2026

  • Use const & or explicit types for range-based for loops
  • Convert index-based loops to range-based where possible
  • Use T * where applicable
  • Clean up surrounding code by hand

Assisted-by: clang-tidy

- Use const & or explicit types for range-based for loops
- Convert index-based loops to range-based where possible

Assited-by: clang-tidy
@kuhar kuhar enabled auto-merge (squash) January 20, 2026 02:20
@kuhar kuhar merged commit 24ed1b9 into iree-org:main Jan 20, 2026
54 of 55 checks passed
keshavvinayak01 pushed a commit that referenced this pull request Jan 27, 2026
- Use const & or explicit types for range-based for loops
- Convert index-based loops to range-based where possible
- Use `T *` where applicable
- Clean up surrounding code by hand

Assisted-by: clang-tidy
Signed-off-by: Keshav Vinayak Jha <[email protected]>
MaheshRavishankar pushed a commit to MaheshRavishankar/iree that referenced this pull request Feb 24, 2026
- Use const & or explicit types for range-based for loops
- Convert index-based loops to range-based where possible
- Use `T *` where applicable
- Clean up surrounding code by hand

Assisted-by: clang-tidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants