[llvm] [InstCombine] Fold its select user into select (PR #83405)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 04:01:19 PST 2024


================
@@ -3672,3 +3672,33 @@ define i32 @src_select_xxory_eq0_xorxy_y(i32 %x, i32 %y) {
   %cond = select i1 %xor0, i32 %xor, i32 %y
   ret i32 %cond
 }
+
+define i32 @sequence_select_with_same_cond (i1 %c1, i1 %c2){
----------------
vfdff wrote:

oh, yes, it is strange, it works when I only keep this case **@sequence_select_with_same_cond**

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


More information about the llvm-commits mailing list