diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-11-05 21:07:12 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-11-05 21:07:12 +0000 |
commit | 484e48e3a3107c8b9827824fc40d5e644e79bf97 (patch) | |
tree | 6504907b3e43dac62fe4361a91f4e88a0da59e28 /llvm/lib/Analysis/CostModel.cpp | |
parent | b9ce5a8b6c06836418355fb6bbdcff5edde33fef (diff) | |
download | bcm5719-llvm-484e48e3a3107c8b9827824fc40d5e644e79bf97.tar.gz bcm5719-llvm-484e48e3a3107c8b9827824fc40d5e644e79bf97.zip |
Refactor: Simplify boolean conditional return statements in llvm/lib/Analysis
Patch by Richard Thomson!
Differential revision: http://reviews.llvm.org/D9967
llvm-svn: 252209
Diffstat (limited to 'llvm/lib/Analysis/CostModel.cpp')
-rw-r--r-- | llvm/lib/Analysis/CostModel.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/CostModel.cpp b/llvm/lib/Analysis/CostModel.cpp index 604cc2af746..b11f64d4bf0 100644 --- a/llvm/lib/Analysis/CostModel.cpp +++ b/llvm/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, |