[llvm] [InstCombineSimplifyDemanded] Fold xor into or based on a condition (PR #151870)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 3 09:15:08 PDT 2025


================
@@ -0,0 +1,15 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
+
+define i8 @a(i8 %x) nounwind {
----------------
dtcxzyw wrote:

It has been covered by an existing fold in instcombine: https://godbolt.org/z/aoenYGsEG

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


More information about the llvm-commits mailing list