[all-commits] [llvm/llvm-project] ab73bd: [InstCombine] Enhance select icmp and folding

PeixinQiao via All-commits all-commits at lists.llvm.org
Wed Jul 12 07:40:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab73bd3897b58ecde22ec5eea14b6252f2d69b6e
      https://github.com/llvm/llvm-project/commit/ab73bd3897b58ecde22ec5eea14b6252f2d69b6e
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-icmp-and-zero-shl.ll

  Log Message:
  -----------
  [InstCombine] Enhance select icmp and folding

This folds (a << k) ? 2^k * a : 0 to 2^k * a.

https://alive2.llvm.org/ce/z/_dDRjo

Fix #62155.

Reviewed By: nikic

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




More information about the All-commits mailing list