[PATCH] D46315: [RegUsageInfoCollector] Fix handling of callee saved registers with CSR optimization.

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 13 11:30:51 PDT 2018


MatzeB added inline comments.


================
Comment at: lib/CodeGen/RegUsageInfoCollector.cpp:165
+  // Insert subregs.
+  const MCPhysReg *CSRegs = TRI->getCalleeSavedRegs(&MF);
+  for (unsigned i = 0; CSRegs[i]; ++i) {
----------------
This needs to use `MachineRegisterInfo::getCalleeSavedRegs()`, not `TargetRegisterInfo::getCalleeSavedRegs()`.


https://reviews.llvm.org/D46315





More information about the llvm-commits mailing list