[llvm] [AMDGPU] Add target hook to isGlobalMemoryObject (PR #112781)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 10:06:09 PST 2024


================
@@ -549,7 +549,7 @@ void ScheduleDAGInstrs::addVRegUseDeps(SUnit *SU, unsigned OperIdx) {
 
 /// Returns true if MI is an instruction we are unable to reason about
 /// (like a call or something with unmodeled side effects).
-static inline bool isGlobalMemoryObject(MachineInstr *MI) {
----------------
arsenm wrote:

I mean make it an instruction property, rather than introducing a very specific override for this one case. Are you allowed to put other isLabel instructions anywhere in the block? 

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


More information about the llvm-commits mailing list