[PATCH] D33530: [SelectionDAG] Set ISD::FPOWI to Expand by default

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 18:18:05 PDT 2017


craig.topper created this revision.
Herald added subscribers: javed.absar, nemanjai.

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.


https://reviews.llvm.org/D33530

Files:
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  lib/CodeGen/TargetLoweringBase.cpp
  lib/Target/AArch64/AArch64ISelLowering.cpp
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/Mips/MipsISelLowering.cpp
  lib/Target/PowerPC/PPCISelLowering.cpp
  lib/Target/X86/X86ISelLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33530.100192.patch
Type: text/x-patch
Size: 6810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170525/5082262a/attachment.bin>


More information about the llvm-commits mailing list