[PATCH] D92637: [DAGCombine][PowerPC] Simplify nabs by using legal `smin` operation
Kai Luo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 4 00:04:11 PST 2020
lkail created this revision.
lkail added reviewers: RKSimon, spatel, steven.zhang, PowerPC.
Herald added subscribers: shchenz, hiraditya, nemanjai.
lkail requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Convert `0 - abs(x)` to `smin (x, -x)` if `smin` is a legal operation.
Verification: https://alive2.llvm.org/ce/z/vpquFR
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D92637
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/PowerPC/neg-abs.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92637.309467.patch
Type: text/x-patch
Size: 4197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201204/8ef772ed/attachment.bin>
More information about the llvm-commits
mailing list