[llvm] r261527 - Revert bad fix for PR26690.
Nemanja Ivanovic via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 22 07:06:33 PST 2016
Author: nemanjai
Date: Mon Feb 22 09:06:32 2016
New Revision: 261527
URL: http://llvm.org/viewvc/llvm-project?rev=261527&view=rev
Log:
Revert bad fix for PR26690.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp?rev=261527&r1=261526&r2=261527&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp Mon Feb 22 09:06:32 2016
@@ -653,7 +653,7 @@ PPCFrameLowering::findScratchRegister(Ma
// Now that we've done our best to provide both registers, double check
// whether we were unable to provide enough.
- if (BV.count() < TwoUniqueRegsRequired ? 2 : 1)
+ if (BV.empty() || (BV.count() < 2 && TwoUniqueRegsRequired))
return false;
return true;
More information about the llvm-commits
mailing list