[all-commits] [llvm/llvm-project] b751da: [InstCombine] Handle integer extension in `select`...

zero9178 via All-commits all-commits at lists.llvm.org
Tue Sep 20 13:25:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b751da43b2bdccda78f30ac8411b6396c0be6874
      https://github.com/llvm/llvm-project/commit/b751da43b2bdccda78f30ac8411b6396c0be6874
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

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

  Log Message:
  -----------
  [InstCombine] Handle integer extension in `select` patterns using the condition as value

These patterns were previously only implemented for i1 type but can be extended for any integer type by also handling zext and sext operands.

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




More information about the All-commits mailing list