[llvm] [KnownBits] Make nuw and nsw support in computeForAddSub optimal (PR #83382)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 09:10:15 PST 2024


================
@@ -166,44 +166,82 @@ TEST(KnownBitsTest, AddCarryExhaustive) {
 }
 
 static void TestAddSubExhaustive(bool IsAdd) {
-  unsigned Bits = 4;
+  unsigned Bits = 6;
----------------
goldsteinn wrote:

Ah, didn't mean to leave that in.

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


More information about the llvm-commits mailing list