mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Accept null PhysReg arguments to checkRegMaskInterference.
Calling checkRegMaskInterference(VirtReg) checks if VirtReg crosses any regmask operands, regardless of the registers they clobber. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -110,7 +110,7 @@ bool LiveRegMatrix::checkRegMaskInterference(LiveInterval &VirtReg,
|
||||
// The BitVector is indexed by PhysReg, not register unit.
|
||||
// Regmask interference is more fine grained than regunits.
|
||||
// For example, a Win64 call can clobber %ymm8 yet preserve %xmm8.
|
||||
return !RegMaskUsable.empty() && !RegMaskUsable.test(PhysReg);
|
||||
return !RegMaskUsable.empty() && (!PhysReg || !RegMaskUsable.test(PhysReg));
|
||||
}
|
||||
|
||||
bool LiveRegMatrix::checkRegUnitInterference(LiveInterval &VirtReg,
|
||||
|
Reference in New Issue
Block a user