[PATCH] D132080: RegisterClassInfo: Fix CSR cache invalidation

Mircea Trofin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 16:32:28 PDT 2022


mtrofin accepted this revision.
mtrofin added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/CodeGen/RegisterClassInfo.cpp:58
+  const MCPhysReg *CSR = MRI.getCalleeSavedRegs();
+  bool CSRChanged;
+  if (Update) {
----------------
how about:

```
bool CSRChanged = true;

if (!Update) {
  CSRChanged = false;
  ...
}
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132080/new/

https://reviews.llvm.org/D132080



More information about the llvm-commits mailing list