[PATCH] D81181: [TargetLowering][NFC] More efficient emitPatchpoint().
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 4 14:57:15 PDT 2020
reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.
LGTM w/minor change suggested.
================
Comment at: llvm/lib/CodeGen/TargetLoweringBase.cpp:1035
+
+ for (unsigned OperIdx = 0; OperIdx < MI->getNumOperands(); ++OperIdx) {
MachineOperand &MO = MI->getOperand(OperIdx);
----------------
Minor, optional: I believe you can rewrite this as:
for (auto &Op : MI->operands()) { ...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81181/new/
https://reviews.llvm.org/D81181
More information about the llvm-commits
mailing list