[llvm] [MachineLICM] Let targets decide if copy-like instructions are cheap (PR #146599)
Guy David via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 4 04:36:49 PDT 2025
================
@@ -1219,7 +1219,7 @@ bool MachineLICMImpl::HasHighOperandLatency(MachineInstr &MI, unsigned DefIdx,
/// Return true if the instruction is marked "cheap" or the operand latency
/// between its def and a use is one or less.
bool MachineLICMImpl::IsCheapInstruction(MachineInstr &MI) const {
- if (TII->isAsCheapAsAMove(MI) || MI.isCopyLike())
+ if (TII->isAsCheapAsAMove(MI))
----------------
guy-david wrote:
Here: https://github.com/llvm/llvm-project/pull/146599/commits/e38181c96ff9b9c6a4fe5d93a5ad0616e292c61c#diff-53cf6ca90f9384e11bb8c5fc551682b80f843439b3d27da4bba2bfb82ee02a6cL209.
https://github.com/llvm/llvm-project/pull/146599
More information about the llvm-commits
mailing list