summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-10-24 05:37:28 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-10-24 05:37:28 +0000
commitbb5ffc50b7bf3ba75d16dd97b91c166f403bb52a (patch)
treee12d80b63669d2b9e0109aade68c887b95781142 /llvm/lib/Analysis
parent0b244abc5121bb881ed452f315c36581f017ff8e (diff)
downloadbcm5719-llvm-bb5ffc50b7bf3ba75d16dd97b91c166f403bb52a.tar.gz
bcm5719-llvm-bb5ffc50b7bf3ba75d16dd97b91c166f403bb52a.zip
Fix whitespace issues in two places; NFC
llvm-svn: 251179
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp3
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index cf6aa9a1163..ec50b8a05f4 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -2447,7 +2447,8 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
if (auto *I = dyn_cast<Instruction>(LHS))
if (auto *Ranges = I->getMetadata(LLVMContext::MD_range))
- LHS_CR = LHS_CR.intersectWith(GetConstantRangeFromMetadata(Ranges, Width));
+ LHS_CR =
+ LHS_CR.intersectWith(GetConstantRangeFromMetadata(Ranges, Width));
if (!LHS_CR.isFullSet()) {
if (RHS_CR.contains(LHS_CR))
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index ee08c810713..4f0ef2a9595 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -3801,8 +3801,8 @@ static bool IsAvailableOnEntry(const Loop *L, DominatorTree &DT, const SCEV *S,
switch (S->getSCEVType()) {
case scConstant: case scTruncate: case scZeroExtend: case scSignExtend:
case scAddExpr: case scMulExpr: case scUMaxExpr: case scSMaxExpr:
- // These expressions are available if their operand(s) is/are.
- return true;
+ // These expressions are available if their operand(s) is/are.
+ return true;
case scAddRecExpr: {
// We allow add recurrences that are on the loop BB is in, or some
OpenPOWER on IntegriCloud