]> granicus.if.org Git - llvm/commit
[SelectionDAG] Set ISD::FPOWI to Expand by default
authorCraig Topper <craig.topper@gmail.com>
Tue, 30 May 2017 15:27:55 +0000 (15:27 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 30 May 2017 15:27:55 +0000 (15:27 +0000)
commit384602a9e4037e3e6e2470dae2e9988c55b868e8
treeddb9e2a84a4ebfd6beebfd884dbf3ac997f03972
parenta31800bb04716ff167071505ac7274284cfe60ee
[SelectionDAG] Set ISD::FPOWI to Expand by default

Summary:
Currently FPOWI defaults to Legal and LegalizeDAG.cpp turns Legal into Expand for this opcode because Legal is a "lie".

This patch changes the default for this opcode to Expand and removes the hack from LegalizeDAG.cpp. It also removes all the code in the targets that set this opcode to Expand themselves since they can just rely on the default.

Reviewers: spatel, RKSimon, efriedma

Reviewed By: RKSimon

Subscribers: jfb, dschuff, sbc100, jgravelle-google, nemanjai, javed.absar, andrew.w.kaylor, llvm-commits

Differential Revision: https://reviews.llvm.org/D33530

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304215 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/TargetLoweringBase.cpp
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/Hexagon/HexagonISelLowering.cpp
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
lib/Target/X86/X86ISelLowering.cpp