Issue 204537
Summary [Analysis] Strength reduction for `@llvm.pext` and `@llvm.pdep` to AND
Labels
Assignees
Reporter eisenwave
    When `@llvm.pext` and `@llvm.pdep` are given a single contiguous blocks of `1`-bits starting at the least significant bit, followed by zeros, I believe it is strictly better to transforms this into a bitwise AND. That is:

- `pext(x, 0xFF) -> x & 0xFF`
- `pdep(x, 0xFF) -> x & 0xFF`
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to