[llvm] [KnownBits] Remove `hasConflict()` assertions (PR #94568)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 09:08:41 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 8c452d0cc5004d32bcce7a33e6652c19debf7f6d 5896305102a49063193ead4c436f875cdd73abe2 -- llvm/include/llvm/Support/KnownBits.h llvm/lib/Analysis/ValueTracking.cpp llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp llvm/lib/IR/ConstantRange.cpp llvm/lib/Support/KnownBits.cpp llvm/lib/Target/X86/X86ISelLowering.cpp llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp llvm/unittests/Analysis/ValueTrackingTest.cpp llvm/unittests/IR/DemandedBitsTest.cpp llvm/unittests/Support/KnownBitsTest.cpp llvm/unittests/Support/KnownBitsTest.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/unittests/IR/DemandedBitsTest.cpp b/llvm/unittests/IR/DemandedBitsTest.cpp
index aa7607c3dc..b52173412a 100644
--- a/llvm/unittests/IR/DemandedBitsTest.cpp
+++ b/llvm/unittests/IR/DemandedBitsTest.cpp
@@ -39,8 +39,8 @@ static void TestBinOpExhaustive(Fn1 PropagateFn, Fn2 EvalFn) {
           APInt AB1R = PropagateFn(0, AOut, Known1Redacted, Known2Redacted);
           APInt AB2R = PropagateFn(1, AOut, Known1Redacted, Known2Redacted);
           if (!Known1Redacted.hasConflict() && !Known2Redacted.hasConflict()) {
-              EXPECT_EQ(AB1, AB1R);
-              EXPECT_EQ(AB2, AB2R);
+            EXPECT_EQ(AB1, AB1R);
+            EXPECT_EQ(AB2, AB2R);
           }
         }
         ForeachNumInKnownBits(Known1, [&](APInt Value1) {

``````````

</details>


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


More information about the llvm-commits mailing list