[PATCH] D96015: [RegAllocFast] Handle case where operand of copy cannot be assigned.
Pengfei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 25 21:54:45 PST 2021
pengfei added inline comments.
================
Comment at: llvm/lib/CodeGen/RegAllocFast.cpp:1094-1099
+ for (MCRegUnitIterator UI(PhysReg, TRI); UI.isValid(); ++UI) {
+ if (RegUnitStates[*UI] == regPreAssigned) {
+ return true;
+ }
+ }
+ return false;
----------------
nit: this can be a any_of.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96015/new/
https://reviews.llvm.org/D96015
More information about the llvm-commits
mailing list