Commit 91172bd3 authored by Cameron McInally's avatar Cameron McInally Committed by Tobias Hieta
Browse files

[DAGCombine] Fix an ICE in combineMinNumMaxNum(...)

65420c80 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

(cherry picked from commit af4c4f4e)
parent 57b29461
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment