[llvm] InstCombine: fold(select C, (X | A), X) | B into X | select C, (A | B), B. (#154246) (PR #154267)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 19 07:11:33 PDT 2025


================
@@ -0,0 +1,33 @@
+; RUN: opt -passes=instcombine -S < %s | FileCheck %s
----------------
dtcxzyw wrote:

1. Use update_test_checks.py to generate test files.
2. Add some negative tests.
3. Add some multi-use tests.
4. Do not add the tgt function. It should be generated by the script above.

Please read https://llvm.org/docs/InstCombineContributorGuide.html#tests for more information.


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


More information about the llvm-commits mailing list