summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJunmo Park <junmoz.park@samsung.com>2016-08-02 04:38:27 +0000
committerJunmo Park <junmoz.park@samsung.com>2016-08-02 04:38:27 +0000
commitdb8f6eebee24d8a8f4bdb47a82b5b74da4a81d45 (patch)
treecef56b61d58d7792bc69315aa267011789437b51 /llvm/lib/Transforms
parent65ec15b095d3a5c08e1d77df95150fb90bfd6472 (diff)
downloadbcm5719-llvm-db8f6eebee24d8a8f4bdb47a82b5b74da4a81d45.tar.gz
bcm5719-llvm-db8f6eebee24d8a8f4bdb47a82b5b74da4a81d45.zip
Minor code cleanups. NFC.
llvm-svn: 277415
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 8e821d9b9fa..32060fa9eca 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -5045,7 +5045,7 @@ static bool isSwitchDense(ArrayRef<int64_t> Values) {
uint64_t NumCases = Values.size();
// 40% is the default density for building a jump table in optsize/minsize mode.
uint64_t MinDensity = 40;
-
+
return NumCases * 100 >= Range * MinDensity;
}
@@ -5123,7 +5123,7 @@ static bool ReduceSwitchRange(SwitchInst *SI, IRBuilder<> &Builder,
// shift and puts the shifted-off bits in the uppermost bits. If any of these
// are nonzero then the switch condition will be very large and will hit the
// default case.
-
+
auto *Ty = cast<IntegerType>(SI->getCondition()->getType());
Builder.SetInsertPoint(SI);
auto *ShiftC = ConstantInt::get(Ty, Shift);
OpenPOWER on IntegriCloud