[llvm] [InstCombine] Try optimizing with knownbits which determined from Cond (PR #91762)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 10 09:11:26 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 51f6570eba69b7030f2845e30b7973bd9ac6c522 d317b29ebce99a95dfa95d9f24f7da672f6939c1 -- llvm/include/llvm/Analysis/ValueTracking.h llvm/include/llvm/Transforms/InstCombine/InstCombiner.h llvm/lib/Analysis/ValueTracking.cpp llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
index ef9931f440..7c5f8bc400 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
@@ -1819,7 +1819,8 @@ static Instruction *foldSelectICmpBinOp(SelectInst &SI, ICmpInst *ICI,
          match(TVal, m_c_BinOp(m_Specific(Y), m_Value())))))
     return nullptr;
 
-  LLVM_DEBUG(dbgs() << "ENTER: ";CmpLHS->dump();CmpRHS->dump();TVal->dump(););
+  LLVM_DEBUG(dbgs() << "ENTER: "; CmpLHS->dump(); CmpRHS->dump();
+             TVal->dump(););
   enum SpecialKnownBits {
     NOTHING_SPECIAL = 0,
     NO_COMMON_BITS = 1 << 1,

``````````

</details>


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


More information about the llvm-commits mailing list