[llvm] [RISCV] Select (and (srl x, c2), c1) as (srli (srai x, c2-c3)). (PR #101868)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 4 00:43:29 PDT 2024
================
@@ -1449,6 +1449,31 @@ void RISCVDAGToDAGISel::Select(SDNode *Node) {
}
}
+ // Turn (and (srl x, c2), c1) -> (srli (srai x, c2-c3)) if c1 is a mask with
----------------
dtcxzyw wrote:
```suggestion
// Turn (and (sra x, c2), c1) -> (srli (srai x, c2-c3), c3) if c1 is a mask with
```
https://github.com/llvm/llvm-project/pull/101868
More information about the llvm-commits
mailing list