This is an archive of the discontinued LLVM Phabricator instance.

Mips: Avoid implicit iterator conversions, NFC
ClosedPublic

Authored by dexonsmith on Jul 8 2016, 12:22 PM.

Details

Reviewers
dsanders
Summary

Avoid implicit conversions from MachineInstrBundleIterator to
MachineInstr* in the Mips backend, mainly by preferring MachineInstr&
over MachineInstr* when a pointer isn't nullable and using range-based
for loops.

Diff Detail

Event Timeline

dexonsmith updated this revision to Diff 63289.Jul 8 2016, 12:22 PM
dexonsmith retitled this revision from to Mips: Avoid implicit iterator conversions, NFC.
dexonsmith updated this object.
dexonsmith added a subscriber: llvm-commits.
dexonsmith updated this object.Jul 8 2016, 2:30 PM
dsanders accepted this revision.Jul 11 2016, 1:58 AM
dsanders added a reviewer: dsanders.

LGTM

lib/Target/Mips/MipsConstantIslandPass.cpp
803

Can this one be const?

This revision is now accepted and ready to land.Jul 11 2016, 1:58 AM

Thanks for the review! Committed in r275141.

dexonsmith closed this revision.Jul 11 2016, 6:55 PM