[llvm] [AMDGPU] Avoid repeated hash lookups (NFC) (PR #132583)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 22 21:51:24 PDT 2025


================
@@ -146,9 +146,10 @@ bool AMDGPUSetWavePriority::runOnMachineFunction(MachineFunction &MF) {
     bool SuccsMayReachVMEMLoad = false;
     unsigned NumFollowingVALUInsts = 0;
     for (const MachineBasicBlock *Succ : MBB->successors()) {
-      SuccsMayReachVMEMLoad |= MBBInfos[Succ].MayReachVMEMLoad;
+      MBBInfo &SuccInfo = MBBInfos[Succ];
----------------
kazutakahirata wrote:

Fixed.  Thanks!

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


More information about the llvm-commits mailing list