projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactor: Simplify boolean conditional return statements in llvm/lib/Analysis
[oota-llvm.git]
/
lib
/
Analysis
/
CostModel.cpp
diff --git
a/lib/Analysis/CostModel.cpp
b/lib/Analysis/CostModel.cpp
index 604cc2af74641780896df973db3bb8630ae7bb7b..b11f64d4bf0b3f8b9fce8d19b0525488de8d2c82 100644
(file)
--- a/
lib/Analysis/CostModel.cpp
+++ b/
lib/Analysis/CostModel.cpp
@@
-152,10
+152,7
@@
static bool matchPairwiseShuffleMask(ShuffleVectorInst *SI, bool IsLeft,
Mask[i] = val;
SmallVector<int, 16> ActualMask = SI->getShuffleMask();
- if (Mask != ActualMask)
- return false;
-
- return true;
+ return Mask == ActualMask;
}
static bool matchPairwiseReductionAtLevel(const BinaryOperator *BinOp,