[PATCH] D87145: [SelectionDAG] Remove an early-out from computeKnownBits for smin/smax

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 08:24:41 PDT 2020


foad created this revision.
foad added reviewers: nikic, RKSimon.
Herald added subscribers: llvm-commits, ecnelises, hiraditya.
Herald added a project: LLVM.
foad requested review of this revision.

Even if we know nothing about LHS, it can still be useful to know that
smax(LHS, RHS) >= RHS and smin(LHS, RHS) <= RHS.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87145

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/test/CodeGen/X86/avx512-trunc.ll
  llvm/test/CodeGen/X86/known-bits-vector.ll
  llvm/test/CodeGen/X86/masked_store_trunc_usat.ll
  llvm/test/CodeGen/X86/vector-trunc-usat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87145.289963.patch
Type: text/x-patch
Size: 13228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200904/d0419658/attachment.bin>


More information about the llvm-commits mailing list