[llvm] [RISCV][backend] port `(not (add X, -1)) -> (neg X)` to GlobalISel (PR #181640)
Luisa Cicolini via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 16 04:06:19 PST 2026
================
@@ -2120,7 +2120,7 @@ class LLVM_ABI MachineIRBuilder {
std::optional<unsigned> Flags = std::nullopt) {
return buildInstr(TargetOpcode::G_FNEG, {Dst}, {Src0}, Flags);
}
-
+
----------------
luisacicolini wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/181640
More information about the llvm-commits
mailing list