[llvm] [CVP]: Fold `icmp eq X, C` to `trunc X to i1` if C=2k+1 and X in [2k, 2k+1] (PR #83829)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 03:58:21 PST 2024
dtcxzyw wrote:
> With this fold, RISC-V can eliminate two instructions, while ARM can eliminate one instruction on the hot path.
Could you please provide the godbolt link?
https://github.com/llvm/llvm-project/pull/83829
More information about the llvm-commits
mailing list