[PATCH] D48102: Improve handling of COPY instructions with identical value numbers

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 19 07:40:17 PDT 2018


kparzysz added inline comments.


================
Comment at: lib/CodeGen/RegisterCoalescer.cpp:2284
   std::tie(Orig0, Reg0) = followCopyChain(Value0);
-  if (Orig0 == Value1)
+  if (Orig0 == Value1 || Reg0 == Other.Reg)
     return true;
----------------
This should obvoiusly be &&...


Repository:
  rL LLVM

https://reviews.llvm.org/D48102





More information about the llvm-commits mailing list