[all-commits] [llvm/llvm-project] c60a58: [InstCombine] Add check of i1 types in select-to-z...

CongzheUalberta via All-commits all-commits at lists.llvm.org
Mon Dec 21 15:48:07 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c60a58f8d4354ca1a6915045774bf98cfada8ef4
      https://github.com/llvm/llvm-project/commit/c60a58f8d4354ca1a6915045774bf98cfada8ef4
  Author: Congzhe Cao <congzhe.cao at huawei.com>
  Date:   2020-12-21 (Mon, 21 Dec 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

  Log Message:
  -----------
  [InstCombine] Add check of i1 types in select-to-zext/sext transformation

When doing select-to-zext/sext transformations, we should
not handle TrueVal and FalseVal of i1 type otherwise it
would result in zext/sext i1 to i1.

Reviewed By: spatel

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




More information about the All-commits mailing list