[PATCH] D44368: MIR-Canon Idempotent Instruction Hoisting.

Puyan Lotfi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 28 01:59:37 PDT 2018


plotfi marked an inline comment as done.
plotfi added inline comments.


================
Comment at: lib/CodeGen/MIRCanonicalizerPass.cpp:195-196
+  for (auto *II : Instructions) {
+    for (unsigned i = 1; i < II->getNumOperands(); i++) {
+      MachineOperand &MO = II->getOperand(i);
+      if (!MO.isReg())
----------------
bogner wrote:
> for (MachineOperand &MO : II->operands()) ?
I wanted to start at operand 1 not 0. 


Repository:
  rL LLVM

https://reviews.llvm.org/D44368





More information about the llvm-commits mailing list