https://llvm.org/bugs/show_bug.cgi?id=27283

            Bug ID: 27283
           Summary: trunk/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:5079]:
                    (style) Redundant condition:
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: dcb...@hotmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

trunk/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:5079]: (style) Redundant
condition: LoopHeaders. '!LoopHeaders || (LoopHeaders &&
!LoopHeaders.count(BB))' is equivalent to '!LoopHeaders ||
!LoopHeaders.count(BB)'

Source code is

  if (I->isTerminator() && BB != &BB->getParent()->getEntryBlock() &&
      (!LoopHeaders || (LoopHeaders && !LoopHeaders->count(BB))) &&
      TryToSimplifyUncondBranchFromEmptyBlock(BB))

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to