[all-commits] [llvm/llvm-project] 207f32: [DAG] SimplifyDemandedBits - use KnownBits compari...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Jan 18 02:35:10 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 207f32948b2408bebd5a523695f6f7c08049db74
      https://github.com/llvm/llvm-project/commit/207f32948b2408bebd5a523695f6f7c08049db74
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-01-18 (Mon, 18 Jan 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/AMDGPU/r600-legalize-umax-bug.ll
    M llvm/test/CodeGen/X86/combine-umin.ll
    M llvm/test/CodeGen/X86/sdiv_fix_sat.ll
    M llvm/test/CodeGen/X86/udiv_fix_sat.ll

  Log Message:
  -----------
  [DAG] SimplifyDemandedBits - use KnownBits comparisons to remove ISD::UMIN/UMAX ops

Use the KnownBits icmp comparisons to determine when a ISD::UMIN/UMAX op is unnecessary should either op be known to be ULT/ULE or UGT/UGE than the other.

Differential Revision: https://reviews.llvm.org/D94532




More information about the All-commits mailing list