[llvm] 3ae3e40 - [ConstraintSystem] Drop left-over parentheses. (NFC)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 3 05:58:10 PST 2024


Author: Florian Hahn
Date: 2024-01-03T13:57:52Z
New Revision: 3ae3e40706aad2ce92002a0da24e39d271feb42b

URL: https://github.com/llvm/llvm-project/commit/3ae3e40706aad2ce92002a0da24e39d271feb42b
DIFF: https://github.com/llvm/llvm-project/commit/3ae3e40706aad2ce92002a0da24e39d271feb42b.diff

LOG: [ConstraintSystem] Drop left-over parentheses. (NFC)

Remove left over redundant parentheses after 9b6127d7 as pointed out by
@nikic.

Added: 
    

Modified: 
    llvm/lib/Analysis/ConstraintSystem.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/ConstraintSystem.cpp b/llvm/lib/Analysis/ConstraintSystem.cpp
index 35bdd869a88d1a..1a9c7c21e9cedf 100644
--- a/llvm/lib/Analysis/ConstraintSystem.cpp
+++ b/llvm/lib/Analysis/ConstraintSystem.cpp
@@ -95,14 +95,14 @@ bool ConstraintSystem::eliminateUsingFM() {
           IdxUpper++;
         }
 
-        if (MulOverflow(UpperV, ((-1) * LowerLast), M1))
+        if (MulOverflow(UpperV, -1 * LowerLast, M1))
           return false;
         if (IdxLower < LowerRow.size() && LowerRow[IdxLower].Id == CurrentId) {
           LowerV = LowerRow[IdxLower].Coefficient;
           IdxLower++;
         }
 
-        if (MulOverflow(LowerV, (UpperLast), M2))
+        if (MulOverflow(LowerV, UpperLast, M2))
           return false;
         if (AddOverflow(M1, M2, N))
           return false;


        


More information about the llvm-commits mailing list