diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-30 15:27:55 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-30 15:27:55 +0000 |
commit | f6d4dc5b4a0c63e85273350b39bcf1e7647b1419 (patch) | |
tree | 3acdcbcd8273b45398473ba77b0ec09b36a64a7d /llvm/lib/Target/X86/X86ISelLowering.cpp | |
parent | 2260299830012fbf5264dd048f0c544dc8a2a4e1 (diff) | |
download | bcm5719-llvm-f6d4dc5b4a0c63e85273350b39bcf1e7647b1419.tar.gz bcm5719-llvm-f6d4dc5b4a0c63e85273350b39bcf1e7647b1419.zip |
[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
llvm-svn: 304215
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index fa234510edc..8d78308afe9 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -676,7 +676,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM, setOperationAction(ISD::FSINCOS, VT, Expand); setOperationAction(ISD::FCOS, VT, Expand); setOperationAction(ISD::FREM, VT, Expand); - setOperationAction(ISD::FPOWI, VT, Expand); setOperationAction(ISD::FCOPYSIGN, VT, Expand); setOperationAction(ISD::FPOW, VT, Expand); setOperationAction(ISD::FLOG, VT, Expand); |