[llvm] [MachineLICM] Rematerialize instructions that may be hoisted before LICM (PR #158479)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 07:37:30 PDT 2025


================
@@ -167,3 +167,48 @@ bool llvm::isCycleInvariant(const MachineCycle *Cycle, MachineInstr &I) {
   // If we got this far, the instruction is cycle invariant!
   return true;
 }
+
+bool llvm::mayLoadFromGOTOrConstantPool(MachineInstr &MI) {
----------------
dianqk wrote:

Perhaps it's unnecessary. I'll check it later.

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


More information about the llvm-commits mailing list