Fix parenthesis for BCTRL_{ELF|Macho} test.
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>
Tue, 27 Feb 2007 13:10:41 +0000 (13:10 +0000)
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>
Tue, 27 Feb 2007 13:10:41 +0000 (13:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34668 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCHazardRecognizers.cpp

index 428bdeac925cfd00a2080846992627e5a7338146..52f8ca7b59281ea7b9db580d2022f7b469fb11e2 100644 (file)
@@ -157,7 +157,7 @@ getHazardType(SDNode *Node) {
   }
   
   // Do not allow MTCTR and BCTRL to be in the same dispatch group.
-  if (HasCTRSet && Opcode == PPC::BCTRL_Macho || Opcode == PPC::BCTRL_ELF)
+  if (HasCTRSet && (Opcode == PPC::BCTRL_Macho || Opcode == PPC::BCTRL_ELF))
     return NoopHazard;
   
   // If this is a load following a store, make sure it's not to the same or