[PATCH] D133610: [RegisterCoalescer] Use LiveRangeEdit to handle rematerialization

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 13:38:00 PDT 2022


rampitec added inline comments.


================
Comment at: llvm/lib/CodeGen/RegisterCoalescer.cpp:1307
   }
-  if (!TII->isAsCheapAsAMove(*DefMI))
-    return false;
----------------
`isAsCheapAsAMove` is a very cheap check, better to leave it here and bail early rather then defer it until you call `canRematerializeAt`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133610



More information about the llvm-commits mailing list