[PATCH] D146786: [CodeGenPrepare][RISCV] Correct the MathUsed flag for shouldFormOverflowOp
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 24 10:51:56 PDT 2023
craig.topper updated this revision to Diff 508164.
craig.topper added a comment.
Restore old code structure.
Check 1 use instead of 2 for sub. That's safer in case of a dead sub instruction.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146786/new/
https://reviews.llvm.org/D146786
Files:
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/CodeGen/RISCV/overflow-intrinsics.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146786.508164.patch
Type: text/x-patch
Size: 4958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230324/58aa9776/attachment.bin>
More information about the llvm-commits
mailing list