I wanted to add some code to CodeGenPrep, but I thought I should get
these nits out of the way first.
Details
Details
- Reviewers
qcolombet silvas craig.topper dexonsmith
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hi Ramkumar,
Go ahead with those clean-ups.
If you happen to want to do some other clean-ups, just commit, no need to review :).
Thanks,
-Quentin
Comment Actions
Doesn't iterating over function give BB's? I.e. shouldn't this be for (BasicBlock &BB : F)?
Comment Actions
It depends on what you want to construct from the iteration. You could construct a BasicBlock, like you said; but this is perfectly valid too: you can try it out, and see that tests pass.
Comment Actions
Revert first hunk, and change the cursor to BasicBlock in the second
and third loops. Do one additional inner loop.
Comment Actions
(Once you have an LGTM, there's no need to repost a review, just
fix it offline and commit.)
Do you need someone to commit this for you?