No behavior change. In preparation for using a parallelFor() here.
Details
Details
- Reviewers
tschuett - Group Reviewers
Restricted Project - Commits
- rG3ade3d372408: [lld/mac] Replace while loop with for loop
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nit. Your are not allowed to check getBlockCount() for every iteration. Pull it out of the loop?
Comment Actions
https://llvm.org/docs/CodingStandards.html#don-t-evaluate-end-every-time-through-a-loop
Or does getBlockCount()changes in every iteration?
Comment Actions
I don't understand what this means. Do you mean i < getBlockCount() in the loop conditional? Pretty sure all compilers strength-reduce this (e.g. https://godbolt.org/z/qjMW6cErh)