[llvm-bugs] [Bug 32138] New: lib/CodeGen/BranchCoalescing.cpp:263]: (style) Redundant condition

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 4 02:50:19 PST 2017


            Bug ID: 32138
           Summary: lib/CodeGen/BranchCoalescing.cpp:263]: (style)
                    Redundant condition
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org

llvm/lib/CodeGen/BranchCoalescing.cpp:263]: (style) Redundant condition:
Cand.BranchTargetBlock. '!A || (A && B)' is equivalent to '!A || B'

Source code is

  if (!Cand.BranchTargetBlock || (Cand.BranchTargetBlock && FalseMBB)
      || !Cand.BranchBlock->isSuccessor(Cand.BranchTargetBlock)) {

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170304/d0023a28/attachment.html>

More information about the llvm-bugs mailing list