[llvm] [LLVM] Add HasFakeUses to MachineFunction (PR #110097)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 01:34:06 PDT 2024


================
@@ -477,7 +477,7 @@ bool MachineScheduler::runOnMachineFunction(MachineFunction &mf) {
 }
 
 bool PostMachineScheduler::runOnMachineFunction(MachineFunction &mf) {
-  if (skipFunction(mf.getFunction()))
+  if (mf.hasFakeUses() || skipFunction(mf.getFunction()))
----------------
arsenm wrote:

Both of these scheduler changes are surprising to me, and incorrect. We rely on the post RA schedulers to handle hazards 

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


More information about the llvm-commits mailing list