This is an archive of the discontinued LLVM Phabricator instance.

[NFC][Reg2Mem] modernize loops iterators
ClosedPublic

Authored by tammela on Oct 25 2020, 9:47 AM.

Details

Summary

This patch updates the Reg2Mem loops to use more modern iterators.

Diff Detail

Event Timeline

tammela created this revision.Oct 25 2020, 9:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2020, 9:47 AM
tammela requested review of this revision.Oct 25 2020, 9:47 AM

instructions(F) is a new one to me. Very smart. I'll have to remember to use it elsewhere.

llvm/lib/Transforms/Scalar/Reg2Mem.cpp
94

This doesn't need brackets now I think.

dmgreen accepted this revision.Oct 30 2020, 6:57 AM

Otherwise LGTM. Thanks for the cleanup.

This revision is now accepted and ready to land.Oct 30 2020, 6:57 AM
This revision was landed with ongoing or failed builds.Oct 30 2020, 9:50 AM
This revision was automatically updated to reflect the committed changes.