summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-04-25 20:15:33 +0000
committerEtienne Bergeron <etienneb@google.com>2016-04-25 20:15:33 +0000
commit50f02aa3fafcaef537e9158c00d4dee1a032d2fb (patch)
tree3ea96dd1a5b30d302432da1e1a2f15a981fa8cf3 /llvm/lib/Transforms/InstCombine
parentef5a0ee2c3dad1c0e2fc51cf260a76d2acadf063 (diff)
downloadbcm5719-llvm-50f02aa3fafcaef537e9158c00d4dee1a032d2fb.tar.gz
bcm5719-llvm-50f02aa3fafcaef537e9158c00d4dee1a032d2fb.zip
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
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index 4a6e99c3cdb..b2e69b5a178 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -465,11 +465,9 @@ static unsigned getTypeOfMaskedICmp(Value* A, Value* B, Value* C,
if (CCst && CCst->isZero()) {
// if C is zero, then both A and B qualify as mask
result |= (icmp_eq ? (FoldMskICmp_Mask_AllZeroes |
- FoldMskICmp_Mask_AllZeroes |
FoldMskICmp_AMask_Mixed |
FoldMskICmp_BMask_Mixed)
: (FoldMskICmp_Mask_NotAllZeroes |
- FoldMskICmp_Mask_NotAllZeroes |
FoldMskICmp_AMask_NotMixed |
FoldMskICmp_BMask_NotMixed));
if (icmp_abit)
OpenPOWER on IntegriCloud