[PATCH] D30971: [MIR] Support Customed Register Mask and CSRs

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 16 10:56:36 PDT 2017


MatzeB accepted this revision.
MatzeB added a comment.
This revision is now accepted and ready to land.

LGTM, thanks.



================
Comment at: lib/CodeGen/MIRParser/MIRParser.cpp:513-523
-  if (!YamlMF.CalleeSavedRegisters) {
-    for (const MachineBasicBlock &MBB : MF) {
-      for (const MachineInstr &MI : MBB) {
-        for (const MachineOperand &MO : MI.operands()) {
-          if (!MO.isRegMask())
-            continue;
-          MRI.addPhysRegsUsedFromRegMask(MO.getRegMask());
----------------
Oh wow, we even already had the code to compute the UsedPhysRegMask :)


Repository:
  rL LLVM

https://reviews.llvm.org/D30971





More information about the llvm-commits mailing list