summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-05-30 15:27:55 +0000
committerCraig Topper <craig.topper@gmail.com>2017-05-30 15:27:55 +0000
commitf6d4dc5b4a0c63e85273350b39bcf1e7647b1419 (patch)
tree3acdcbcd8273b45398473ba77b0ec09b36a64a7d /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent2260299830012fbf5264dd048f0c544dc8a2a4e1 (diff)
downloadbcm5719-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/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 5f63fd4320b..0def5ae6d0d 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -935,6 +935,7 @@ void TargetLoweringBase::initActions() {
// These library functions default to expand.
setOperationAction(ISD::FROUND, VT, Expand);
+ setOperationAction(ISD::FPOWI, VT, Expand);
// These operations default to expand for vector types.
if (VT.isVector()) {
OpenPOWER on IntegriCloud