[all-commits] [llvm/llvm-project] 824dd8: [AMDGPU][DAG] Fix trunc/shift combine condition

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Thu Oct 20 23:36:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 824dd811be421cd946f64c25eb8ef3ac47eb19f2
      https://github.com/llvm/llvm-project/commit/824dd811be421cd946f64c25eb8ef3ac47eb19f2
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/partial-shift-shrink.ll

  Log Message:
  -----------
  [AMDGPU][DAG] Fix trunc/shift combine condition

The condition needs to be different for right-shifts, else we may lose information in some cases.

Reviewed By: foad

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




More information about the All-commits mailing list