[SelectionDAG] Add check for BUILD_VECTOR in isKnownNeverNaN
authorPetar Avramovic <Petar.Avramovic@amd.com>
Mon, 3 Oct 2022 10:34:12 +0000 (12:34 +0200)
committerPetar Avramovic <Petar.Avramovic@amd.com>
Mon, 3 Oct 2022 10:47:07 +0000 (12:47 +0200)
commit1fa2019828caec1172382009d5327c265427af57
tree3c01e75e22934ba5d71bd461ca7f5edb99867748
parent66fcdfca4d4587fcf93e15859e330ce5d671de82
[SelectionDAG] Add check for BUILD_VECTOR in isKnownNeverNaN

Includes handling of constants with vector type in isKnownNeverNaN.
For AMDGPU results in not making fcanonicalize during legalization
for vector inputs to fmaxnum_ieee and fminnum_ieee. Does not affect
end result since there is a combine that eliminates fcanonicalize.

Differential Revision: https://reviews.llvm.org/D88573
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp