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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 09:28:16 PST 2024


================
@@ -95,17 +95,19 @@ bool ConstraintSystem::eliminateUsingFM() {
           IdxUpper++;
         }
 
-        if (MulOverflow(UpperV, ((-1) * LowerLast), M1))
----------------
fhahn wrote:

I think it might be possible to construct a case where it overflows. Ideally we would construct such a case, add a test and check for overflow. 

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


More information about the llvm-commits mailing list