[LLVMbugs] [Bug 23960] New: lib/Target/AMDGPU/SIInstrInfo.cpp: 3 * redundant condition ?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 26 01:57:16 PDT 2015


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

            Bug ID: 23960
           Summary: lib/Target/AMDGPU/SIInstrInfo.cpp: 3 * redundant
                    condition ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

1.

[trunk/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:939]: (style) Redundant
condition: Src1.isReg(). 'A && (!A || B)' is equivalent to 'A || B'

Source code is

 if (!Src1->isReg() ||
          (Src1->isReg() && RI.isSGPRClass(MRI->getRegClass(Src1->getReg()))))
        return false;

Same thing at lines 943 and 999.

-- 
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/20150626/5c0138f5/attachment.html>


More information about the llvm-bugs mailing list