[llvm] [MachineLICM] Hoist COPY instruction only when user can be hoisted (PR #81735)

David Green via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 08:32:37 PST 2024


================
@@ -1264,13 +1264,24 @@ bool MachineLICMBase::IsProfitableToHoist(MachineInstr &MI,
 
   // If we have a COPY with other uses in the loop, hoist to allow the users to
   // also be hoisted.
+  Register defReg;
----------------
davemgreen wrote:

defReg -> DefReg

https://github.com/llvm/llvm-project/pull/81735


More information about the llvm-commits mailing list