[all-commits] [llvm/llvm-project] c2e76f: [InstCombine] Use simplifyWithOpReplaced() for non...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Sep 22 06:47:50 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2e76f914c9ac0dd15e4a8040a5e277333f91f97
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-09-22 (Thu, 22 Sep 2022)

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

  Log Message:
  [InstCombine] Use simplifyWithOpReplaced() for non-bool selects

Perform the simplifyWithOpReplaced() fold even for non-bool
selects. This subsumes a number of recently added folds for
zext/sext of the condition.

We still need to manually handle variations with both sext/zext
and not, because simplifyWithOpReplaced() only performs one
level of replacements.

More information about the All-commits mailing list