[llvm] [RISCV] and x (sub -1, y) -> andn x y (PR #129253)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 08:42:09 PST 2025
s-barannikov wrote:
> > Isn't sub -1, x canonicalized to xor, -1?
>
> Currently, I think they are not.
But it should be: https://github.com/llvm/llvm-project/blob/3f63e1c834e000d4ea95d667ae224cc232927196/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp#L3969
https://github.com/llvm/llvm-project/pull/129253
More information about the llvm-commits
mailing list