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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 03:25:29 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){
----------------
dtcxzyw wrote:

Looks like your patch doesn't work :(

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


More information about the llvm-commits mailing list