Cleanup redundant expression in InstCombineAndOrXor.

Summary:
The expression is redundant on both side of operator |.

detected by : http://reviews.llvm.org/D19451

Reviewers: rnk, majnemer

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D19459

llvm-svn: 267458
This commit is contained in:
Etienne Bergeron 2016-04-25 20:15:33 +00:00
parent ef5a0ee2c3
commit 50f02aa3fa
1 changed files with 0 additions and 2 deletions

View File

@ -465,11 +465,9 @@ static unsigned getTypeOfMaskedICmp(Value* A, Value* B, Value* C,
if (CCst && CCst->isZero()) { if (CCst && CCst->isZero()) {
// if C is zero, then both A and B qualify as mask // if C is zero, then both A and B qualify as mask
result |= (icmp_eq ? (FoldMskICmp_Mask_AllZeroes | result |= (icmp_eq ? (FoldMskICmp_Mask_AllZeroes |
FoldMskICmp_Mask_AllZeroes |
FoldMskICmp_AMask_Mixed | FoldMskICmp_AMask_Mixed |
FoldMskICmp_BMask_Mixed) FoldMskICmp_BMask_Mixed)
: (FoldMskICmp_Mask_NotAllZeroes | : (FoldMskICmp_Mask_NotAllZeroes |
FoldMskICmp_Mask_NotAllZeroes |
FoldMskICmp_AMask_NotMixed | FoldMskICmp_AMask_NotMixed |
FoldMskICmp_BMask_NotMixed)); FoldMskICmp_BMask_NotMixed));
if (icmp_abit) if (icmp_abit)