================
@@ -601,11 +601,79 @@ void
AMDGPURewriteAGPRCopyMFMAImpl::eliminateSpillsOfReassignedVGPRs() const {
return false;
};
- if (!llvm::all_of(Loads, IsLoadJointlyDominatedByStores)) {
- LLVM_DEBUG(
- dbgs() << "Skipping " << printReg(Slot, &TRI)
- << ": some reachable load not jointly dominated by stores\n");
- continue;
+ // Collect basic blocks of any loads not jointly dominated by stores. After
+ // rewriting, we will attempt to insert a single IMPLICIT_DEF for those
uses
+ // of NewVReg.
+ SmallVector<MachineBasicBlock *, 4> ProblematicLoadMBBs;
----------------
arsenm wrote:
Problematic is wrong phrasing
https://github.com/llvm/llvm-project/pull/200126
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits