[PATCH] D143646: [RISCV] Return false from shouldFormOverflowOp
Liao Chunyu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 04:13:55 PST 2023
liaolucy added inline comments.
================
Comment at: llvm/test/CodeGen/RISCV/overflow-intrinsics.ll:87
store i64 %add, ptr %res
ret i64 %Q
}
----------------
This can be optimized in riscv DAG combine. I'll write another patch.
to:
```
%add = add i64 %b, %a
%cmp = icmp ult i64 %b, 0
%Q = select i1 %cmp, i64 %b, i64 42
store i64 %add, ptr %res
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143646/new/
https://reviews.llvm.org/D143646
More information about the llvm-commits
mailing list