[llvm] [PowerPC] Avoid repeated hash lookups (NFC) (PR #131724)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 18 03:15:04 PDT 2025
================
@@ -2489,22 +2489,23 @@ bool PPCFrameLowering::spillCalleeSavedRegisters(
if (Spilled[Dst])
continue;
- if (VSRContainingGPRs[Dst].second != 0) {
+ auto &VSR = VSRContainingGPRs[Dst];
----------------
nikic wrote:
```suggestion
const auto &VSR = VSRContainingGPRs[Dst];
```
https://github.com/llvm/llvm-project/pull/131724
More information about the llvm-commits
mailing list