[llvm] [AMDGPU] Fix crash due to missing check for FLAT instructions that dont use vector registers when computing VALU hazard. (PR #123627)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 05:07:37 PST 2025


================
@@ -858,9 +858,12 @@ int GCNHazardRecognizer::createsVALUHazard(const MachineInstr &MI) {
   }
 
   if (TII->isFLAT(MI)) {
----------------
arsenm wrote:

Is the MIMG case above doing anything? It looks like it's just an assert?  I'm also surprised we're querying the operand before the instruction type 

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


More information about the llvm-commits mailing list