[PATCH] Refactor: Simplify boolean expressions in R600 target

David Blaikie dblaikie at gmail.com
Mon Mar 23 13:59:33 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8520

Files:
  llvm/trunk/lib/Target/R600/AMDILCFGStructurizer.cpp

Index: llvm/trunk/lib/Target/R600/AMDILCFGStructurizer.cpp
===================================================================
--- llvm/trunk/lib/Target/R600/AMDILCFGStructurizer.cpp
+++ llvm/trunk/lib/Target/R600/AMDILCFGStructurizer.cpp
@@ -623,7 +623,7 @@
   for (MachineBasicBlock::iterator It = MBB->begin(); It != MBB->end();
       ++It) {
     MachineInstr *instr = &(*It);
-    if (instr->getDebugLoc().isUnknown() == false)
+    if (!instr->getDebugLoc().isUnknown())
       DL = instr->getDebugLoc();
   }
   return DL;
@@ -1611,7 +1611,7 @@
 
     bool UseContinueLogical = ((&*ContingMBB->rbegin()) == MI);
 
-    if (UseContinueLogical == false) {
+    if (!UseContinueLogical) {
       int BranchOpcode =
           TrueBranch == ContMBB ? getBranchNzeroOpcode(OldOpcode) :
           getBranchZeroOpcode(OldOpcode);

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8520.22515.patch
Type: text/x-patch
Size: 832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150323/be079818/attachment.bin>


More information about the llvm-commits mailing list