[Codegen][ARM] Add float softening for cbrt
authorDavid Green <david.green@arm.com>
Wed, 23 Oct 2019 16:08:21 +0000 (17:08 +0100)
committerDavid Green <david.green@arm.com>
Mon, 28 Oct 2019 11:08:55 +0000 (11:08 +0000)
commitba2c62553109e324a203aa46c2217cf5f28ab694
tree5e9f34fd64d6740c5b4d0a2c180a5f4a0ec94125
parenta483302fbefb6c48fe5c14c6403be06336a77e7f
[Codegen][ARM] Add float softening for cbrt

We would previously have no soft-float softening for cbrt, so could hit
a crash failing to select. This fills in what appears to be missing.

Differential Revision: https://reviews.llvm.org/D69345
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/test/CodeGen/ARM/fp16-promote.ll
llvm/test/CodeGen/ARM/pow.ll