diff options
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp index 92031d36e99..e8a8b71ad6f 100644 --- a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp @@ -653,7 +653,7 @@ PPCFrameLowering::findScratchRegister(MachineBasicBlock *MBB, // Now that we've done our best to provide both registers, double check // whether we were unable to provide enough. - if (BV.empty() || (BV.count() < 2 && TwoUniqueRegsRequired)) + if (BV.count() < TwoUniqueRegsRequired ? 2 : 1) return false; return true; |