[all-commits] [llvm/llvm-project] af4c4f: [DAGCombine] Fix an ICE in combineMinNumMaxNum(...)

Cameron McInally via All-commits all-commits at lists.llvm.org
Wed Feb 22 11:01:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af4c4f4e21434ae306b7ee83691b5a8c2d90e576
      https://github.com/llvm/llvm-project/commit/af4c4f4e21434ae306b7ee83691b5a8c2d90e576
  Author: Cameron McInally <cmcinally at nvidia.com>
  Date:   2023-02-22 (Wed, 22 Feb 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/X86/2023-02-22-combineMinNumMaxNum.ll

  Log Message:
  -----------
  [DAGCombine] Fix an ICE in combineMinNumMaxNum(...)

65420c8041f4 introduced an ICE in combineMinNumMaxNum(...) when
combineMinNumMaxNumImpl(...) returns an SDValue(). Make sure to check that a
value is returned before trying to perform an FNEG on it.

GitHub Issue: #60924

Reviewed By: arsenm

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




More information about the All-commits mailing list