[all-commits] [llvm/llvm-project] 9d1c8c: [InstCombine] Fix select operand simplification wi...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Oct 1 12:16:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d1c8c0ba94a273c53829f0800335045e547db88
      https://github.com/llvm/llvm-project/commit/9d1c8c0ba94a273c53829f0800335045e547db88
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-10-01 (Thu, 01 Oct 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-binop-cmp.ll
    M llvm/test/Transforms/InstCombine/select.ll

  Log Message:
  -----------
  [InstCombine] Fix select operand simplification with undef (PR47696)

When replacing X == Y ? f(X) : Z with X == Y ? f(Y) : Z, make sure
that Y cannot be undef. If it may be undef, we might end up picking
a different value for undef in the comparison and the select
operand.




More information about the All-commits mailing list