[all-commits] [llvm/llvm-project] 4d28d3: [SDAG] Turn umin into smin if the saturation patte...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Mon Apr 15 10:28:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d28d3f93bfee3cecbeb234d1ce306250e12e912
      https://github.com/llvm/llvm-project/commit/4d28d3f93bfee3cecbeb234d1ce306250e12e912
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-04-16 (Tue, 16 Apr 2024)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AMDGPU/umed3.ll
    M llvm/test/CodeGen/ARM/usat.ll

  Log Message:
  -----------
  [SDAG] Turn umin into smin if the saturation pattern is broken (#88505)

As we canonicalizes smin with non-negative operands into umin in the
middle-end, the saturation pattern will be broken.
This patch reverts the transform in DAGCombine to fix the regression on
ARM.

Fixes https://github.com/llvm/llvm-project/issues/85706.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list