Issue 86063
Summary missed fold, reverse(op(reverse(v))) => op(v)
Labels new issue
Assignees zhengyang92
Reporter zhengyang92
    https://godbolt.org/z/3WdeKEY6d
https://alive2.llvm.org/ce/z/e3zfhB
```
define <8 x i1> @src(<8 x i32> %0) {
entry:
  %2 = shufflevector <8 x i32> %0, <8 x i32> poison, <8 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
  %3 = icmp eq <8 x i32> %2, zeroinitializer
  %4 = shufflevector <8 x i1> %3, <8 x i1> poison, <8 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
  ret <8 x i1> %4
}

define <8 x i1> @tgt(<8 x i32> %0) {
entry:
  %ieq = icmp eq <8 x i32> %0, zeroinitializer
  ret <8 x i1> %ieq
}
```


@regehr @dtcxzyw 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to