DAG: Return the chain from ExpandLibCall
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 Jun 2023 12:11:12 +0000 (08:11 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 Jun 2023 13:03:40 +0000 (09:03 -0400)
commitb69b6b8399ec49c53617f7cee152028300f1ab4e
tree5a10d2d290cc3f96942352e80b762b27ed254b5a
parent1c814c99aaed4c5aec2bf1517fdb82e79c910b87
DAG: Return the chain from ExpandLibCall

If the libcall expansion requires use of the inserted call's result
chain, it's unreliable to query it from the main result. The call
lowering may have added additional casts or other obscuring operations
we don't want to parse through.
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp