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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs