diff options
Diffstat (limited to 'llvm/lib/CodeGen/LiveRegMatrix.h')
-rw-r--r-- | llvm/lib/CodeGen/LiveRegMatrix.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRegMatrix.h b/llvm/lib/CodeGen/LiveRegMatrix.h index 4c3e7d47821..019a5f5877e 100644 --- a/llvm/lib/CodeGen/LiveRegMatrix.h +++ b/llvm/lib/CodeGen/LiveRegMatrix.h @@ -124,7 +124,8 @@ public: /// Check for regmask interference only. /// Return true if VirtReg crosses a regmask operand that clobbers PhysReg. - bool checkRegMaskInterference(LiveInterval &VirtReg, unsigned PhysReg); + /// If PhysReg is null, check if VirtReg crosses any regmask operands. + bool checkRegMaskInterference(LiveInterval &VirtReg, unsigned PhysReg = 0); /// Check for regunit interference only. /// Return true if VirtReg overlaps a fixed assignment of one of PhysRegs's |