[all-commits] [llvm/llvm-project] 79011c: [InstCombine] Fix rare condition violation in cano...

David Green via All-commits all-commits at lists.llvm.org
Thu Oct 28 07:03:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79011c705b5849661cc791016c54ee62d9ec9cb0
      https://github.com/llvm/llvm-project/commit/79011c705b5849661cc791016c54ee62d9ec9cb0
  Author: David Green <david.green at arm.com>
  Date:   2021-10-28 (Thu, 28 Oct 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/truncating-saturate.ll

  Log Message:
  -----------
  [InstCombine] Fix rare condition violation in canonicalizeClampLike

With a "ult x, 0", the fold in canonicalizeClampLike does not validate
with undef inputs. This condition will usually have been simplified
away, but we should ensure the code is correct in case.
https://alive2.llvm.org/ce/z/S8HQ6H vs https://alive2.llvm.org/ce/z/h2XBJ_

See: https://reviews.llvm.org/D108049




More information about the All-commits mailing list