[llvm-commits] [llvm] r103869 - /llvm/trunk/lib/CodeGen/RegAllocFast.cpp
Chandler Carruth
chandlerc at gmail.com
Sat May 15 03:23:23 PDT 2010
Author: chandlerc
Date: Sat May 15 05:23:23 2010
New Revision: 103869
URL: http://llvm.org/viewvc/llvm-project?rev=103869&view=rev
Log:
Fix an GCC warning that seems to have actually caught a bug (!!!) in
a condition's grouping. Every other use of Allocatable.test(Hint) groups it the
same way as it is indented, so move the parentheses to agree with that
grouping.
Modified:
llvm/trunk/lib/CodeGen/RegAllocFast.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocFast.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocFast.cpp?rev=103869&r1=103868&r2=103869&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocFast.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocFast.cpp Sat May 15 05:23:23 2010
@@ -416,8 +416,8 @@
// Ignore invalid hints.
if (Hint && (!TargetRegisterInfo::isPhysicalRegister(Hint) ||
- !RC->contains(Hint) || UsedInInstr.test(Hint)) ||
- !Allocatable.test(Hint))
+ !RC->contains(Hint) || UsedInInstr.test(Hint) ||
+ !Allocatable.test(Hint)))
Hint = 0;
// If there is no hint, peek at the first use of this register.
More information about the llvm-commits
mailing list