[PATCH] D127848: [CodeGen] Fix the bug of machine sink

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 15 08:14:04 PDT 2022


LuoYuanke added inline comments.


================
Comment at: llvm/lib/CodeGen/MachineSink.cpp:802
     // Ignore non-register operands.
     if (!MO.isReg())
       continue;
----------------
shchenz wrote:
> Maybe better to exclude the undef case at the very beginning?
So do we also ingore undef value for physical register?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127848



More information about the llvm-commits mailing list