This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Set ISD::FPOWI to Expand by default
ClosedPublic

Authored by craig.topper on May 24 2017, 6:18 PM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.May 24 2017, 6:18 PM
efriedma edited edge metadata.May 24 2017, 6:34 PM

Looks like you missed Hexagon and WebAssembly?

I missed them because I grepped for setOperationAction(ISD::FPOWI

Update Hexagon and WebAssembly targets too

RKSimon accepted this revision.May 30 2017, 7:30 AM

LGTM

This revision is now accepted and ready to land.May 30 2017, 7:30 AM
This revision was automatically updated to reflect the committed changes.