[PATCH] D131932: RAGreedyStats: Ignore identidy COPYs; count COPYs from/to physregs

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 18:20:20 PDT 2022


MatzeB added inline comments.


================
Comment at: llvm/lib/CodeGen/RegAllocGreedy.cpp:2374
-      MachineOperand &Src = MI.getOperand(1);
-      if (Dest.isReg() && Src.isReg() && Dest.getReg().isVirtual() &&
-          Src.getReg().isVirtual())
----------------
Note for reviewers: We don't need the `isReg()` check as `COPY`s are only allowed between register operands.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131932/new/

https://reviews.llvm.org/D131932



More information about the llvm-commits mailing list