[llvm] [MachineLICM] Rematerialize instructions that may be hoisted before LICM (PR #158479)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 14 19:39:33 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) {
----------------
arsenm wrote:
```suggestion
bool llvm::mayLoadFromGOTOrConstantPool(MachineInstr &MI) {
```
const. Also could just be directly a function of MachineInstr?
https://github.com/llvm/llvm-project/pull/158479
More information about the llvm-commits
mailing list