[AArch64][X86] Don't assume __powidf2 is available on Windows.
authorEli Friedman <efriedma@quicinc.com>
Thu, 31 Oct 2019 19:06:18 +0000 (12:06 -0700)
committerEli Friedman <efriedma@quicinc.com>
Fri, 8 Nov 2019 20:43:21 +0000 (12:43 -0800)
commit5df3a87224ef5843a3374a5b87e57495b3f714c4
tree96954d5ac4aa1ff27469675a0bbe3ad310550c93
parent9f08ce0d2197d4f163dfa4633eae2347ce8fc881
[AArch64][X86] Don't assume __powidf2 is available on Windows.

We had some code for this for 32-bit ARM, but this doesn't really need
to be in target-specific code; generalize it.

(I think this started showing up recently because we added an
optimization that converts pow to powi.)

Differential Revision: https://reviews.llvm.org/D69013
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/AArch64/powi-windows.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/powi-windows.ll [new file with mode: 0644]