This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Simplify iterator navigations (NFC)
ClosedPublic

Authored by aheejin on Mar 4 2019, 10:45 AM.

Details

Summary
  • Replaces some uses of MachineFunction::iterator(MBB) with MBB->getIterator() and MachineBasicBlock::iterator(MI) with MI->getIterator(), which are simpler.
  • Replaces some uses of std::prev of std::next that takes a MachineFunction or MachineBasicBlock iterator with getPrevNode and getNextNode, which are also simpler.

Diff Detail

Event Timeline

aheejin created this revision.Mar 4 2019, 10:45 AM
aheejin edited the summary of this revision. (Show Details)Mar 4 2019, 10:48 AM
sbc100 accepted this revision.Mar 5 2019, 11:00 AM
This revision is now accepted and ready to land.Mar 5 2019, 11:00 AM
This revision was automatically updated to reflect the committed changes.