[PATCH] D94532: [DAG] SimplifyDemandedBits - use KnownBits comparisons to remove ISD::UMIN/UMAX ops
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 12 10:31:45 PST 2021
RKSimon created this revision.
RKSimon added reviewers: spatel, nikic, lebedev.ri.
Herald added subscribers: ecnelises, kerbowa, pengfei, hiraditya, nhaehnle, jvesely.
RKSimon requested review of this revision.
Herald added a project: LLVM.
Use the KnownBits icmp comparisons to determine when a ISD::UMIN/UMAX op is unnecessary should either op be known to be ULE/UGE than the other.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94532
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/AMDGPU/r600-legalize-umax-bug.ll
llvm/test/CodeGen/X86/sdiv_fix_sat.ll
llvm/test/CodeGen/X86/udiv_fix_sat.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94532.316159.patch
Type: text/x-patch
Size: 40645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210112/c39a77a0/attachment.bin>
More information about the llvm-commits
mailing list