[PATCH] D158364: [DAG] SimplifyDemandedBits - if we're only demanding the signbits, a MIN/MAX node can be simplified to a OR or AND node

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 03:50:10 PDT 2023


RKSimon updated this revision to Diff 553432.
RKSimon retitled this revision from "[DAG] SimplifyDemandedBits - if we're only demanding the signbits, a SMIN/SMAX node can be simplified to a OR/AND node respectively." to "[DAG] SimplifyDemandedBits - if we're only demanding the signbits, a MIN/MAX node can be simplified to a OR or AND node".
RKSimon edited the summary of this revision.
RKSimon added a comment.

Added UMIN/UMAX handling and merged all MIN/MAX cases to share code

SMIN/SMAX are still missing proper known bits handling in SimplifyDemandedBits - I'll address this separately with proper test coverage.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158364/new/

https://reviews.llvm.org/D158364

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/X86/known-signbits-vector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158364.553432.patch
Type: text/x-patch
Size: 10436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230825/3a79bc36/attachment.bin>


More information about the llvm-commits mailing list