[llvm] 9c44a09 - [SCEV] Fix formatting error introduced by D112080

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 19 12:44:19 PDT 2021


Author: Bjorn Pettersson
Date: 2021-10-19T21:44:07+02:00
New Revision: 9c44a0996c8cf87607807751be2315020c582c66

URL: https://github.com/llvm/llvm-project/commit/9c44a0996c8cf87607807751be2315020c582c66
DIFF: https://github.com/llvm/llvm-project/commit/9c44a0996c8cf87607807751be2315020c582c66.diff

LOG: [SCEV] Fix formatting error introduced by D112080

Accidentally pushed D112080 without this clang-format cleanup.

Added: 
    

Modified: 
    llvm/lib/Analysis/ScalarEvolution.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 33e512710966..6a0a48eb2ab4 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -10669,8 +10669,10 @@ bool ScalarEvolution::isImpliedCond(ICmpInst::Predicate Pred, const SCEV *LHS,
       auto BitWidth = getTypeSizeInBits(NarrowType);
       const SCEV *MaxValue = getZeroExtendExpr(
           getConstant(APInt::getMaxValue(BitWidth)), WideType);
-      if (isKnownViaNonRecursiveReasoning(ICmpInst::ICMP_ULE, FoundLHS, MaxValue) &&
-          isKnownViaNonRecursiveReasoning(ICmpInst::ICMP_ULE, FoundRHS, MaxValue)) {
+      if (isKnownViaNonRecursiveReasoning(ICmpInst::ICMP_ULE, FoundLHS,
+                                          MaxValue) &&
+          isKnownViaNonRecursiveReasoning(ICmpInst::ICMP_ULE, FoundRHS,
+                                          MaxValue)) {
         const SCEV *TruncFoundLHS = getTruncateExpr(FoundLHS, NarrowType);
         const SCEV *TruncFoundRHS = getTruncateExpr(FoundRHS, NarrowType);
         if (isImpliedCondBalancedTypes(Pred, LHS, RHS, FoundPred, TruncFoundLHS,


        


More information about the llvm-commits mailing list