[llvm] [ConstraintElim] Drop invalid rows instead of failing the elimination (PR #76299)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 28 09:39:36 PST 2023


================
@@ -96,27 +98,34 @@ bool ConstraintSystem::eliminateUsingFM() {
           IdxUpper++;
         }
 
-        if (MulOverflow(UpperV, ((-1) * LowerLast / GCD), M1))
-          return false;
+        if (MulOverflow(UpperV, ((-1) * LowerLast / GCD), M1)) {
+          Valid = false;
----------------
dtcxzyw wrote:

Done.

https://github.com/llvm/llvm-project/pull/76299


More information about the llvm-commits mailing list