[llvm] [MachineLICM] Hoist COPY instruction only when user can be hoisted (PR #81735)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 04:49:46 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;
----------------
michaelselehov wrote:
Done.
https://github.com/llvm/llvm-project/pull/81735
More information about the llvm-commits
mailing list