[all-commits] [llvm/llvm-project] 44bd8e: [DAGCombine][PowerPC] Simplify nabs by using legal...
bzEq via All-commits
all-commits at lists.llvm.org
Mon Dec 7 19:24:26 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 44bd8ea167f2138de9317196a7b199840e29fb59
https://github.com/llvm/llvm-project/commit/44bd8ea167f2138de9317196a7b199840e29fb59
Author: Kai Luo <lkail at cn.ibm.com>
Date: 2020-12-08 (Tue, 08 Dec 2020)
Changed paths:
M llvm/include/llvm/CodeGen/TargetLowering.h
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
M llvm/test/CodeGen/PowerPC/neg-abs.ll
Log Message:
-----------
[DAGCombine][PowerPC] Simplify nabs by using legal `smin` operation
Convert `0 - abs(x)` to `smin (x, -x)` if `smin` is a legal operation.
Verification: https://alive2.llvm.org/ce/z/vpquFR
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D92637
More information about the All-commits
mailing list