guibuilder_pel7x64builder0
6 years ago
3 changed files with 129 additions and 34 deletions
@ -0,0 +1,46 @@ |
|||||||
|
From 69bb97a917250d0d299c4aa3d03bde9513351159 Mon Sep 17 00:00:00 2001 |
||||||
|
From: Tom Stellard <tstellar@redhat.com> |
||||||
|
Date: Mon, 9 Jul 2018 10:35:30 -0700 |
||||||
|
Subject: [PATCH] Don't run BV DAG Combine before legalization if it assumes legal types |
||||||
|
|
||||||
|
--- |
||||||
|
lib/Target/PowerPC/PPCISelLowering.cpp | 13 ++++++++++--- |
||||||
|
1 file changed, 10 insertions(+), 3 deletions(-) |
||||||
|
|
||||||
|
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp |
||||||
|
index 4966e88..378e494 100644 |
||||||
|
--- a/lib/Target/PowerPC/PPCISelLowering.cpp |
||||||
|
+++ b/lib/Target/PowerPC/PPCISelLowering.cpp |
||||||
|
@@ -11923,10 +11923,15 @@ static SDValue combineBVOfVecSExt(SDNode *N, SelectionDAG &DAG) { |
||||||
|
auto isSExtOfVecExtract = [&](SDValue Op) -> bool { |
||||||
|
if (!Op) |
||||||
|
return false; |
||||||
|
- if (Op.getOpcode() != ISD::SIGN_EXTEND) |
||||||
|
+ if (Op.getOpcode() != ISD::SIGN_EXTEND && |
||||||
|
+ Op.getOpcode() != ISD::SIGN_EXTEND_INREG) |
||||||
|
return false; |
||||||
|
|
||||||
|
+ // A SIGN_EXTEND_INREG might be fed by an ANY_EXTEND to produce a value |
||||||
|
+ // of the right width. |
||||||
|
SDValue Extract = Op.getOperand(0); |
||||||
|
+ if (Extract.getOpcode() == ISD::ANY_EXTEND) |
||||||
|
+ Extract = Extract.getOperand(0); |
||||||
|
if (Extract.getOpcode() != ISD::EXTRACT_VECTOR_ELT) |
||||||
|
return false; |
||||||
|
|
||||||
|
@@ -12014,8 +12019,10 @@ SDValue PPCTargetLowering::DAGCombineBuildVector(SDNode *N, |
||||||
|
return Reduced; |
||||||
|
|
||||||
|
// If we're building a vector out of extended elements from another vector |
||||||
|
- // we have P9 vector integer extend instructions. |
||||||
|
- if (Subtarget.hasP9Altivec()) { |
||||||
|
+ // we have P9 vector integer extend instructions. The code assumes legal |
||||||
|
+ // input types (i.e. it can't handle things like v4i16) so do not run before |
||||||
|
+ // legalization. |
||||||
|
+ if (Subtarget.hasP9Altivec() && !DCI.isBeforeLegalize()) { |
||||||
|
Reduced = combineBVOfVecSExt(N, DAG); |
||||||
|
if (Reduced) |
||||||
|
return Reduced; |
||||||
|
-- |
||||||
|
1.8.3.1 |
||||||
|
|
@ -0,0 +1,39 @@ |
|||||||
|
From 4d613a84ce271c6225068bef67d727ae02b2e3b1 Mon Sep 17 00:00:00 2001 |
||||||
|
From: Pavel Labath <labath@google.com> |
||||||
|
Date: Wed, 14 Mar 2018 09:28:38 +0000 |
||||||
|
Subject: [PATCH] Export LLVM_DYLIB_COMPONENTS in LLVMConfig.cmake |
||||||
|
|
||||||
|
Summary: |
||||||
|
This is needed so that external projects (e.g. a standalone build of |
||||||
|
lldb) can link to the LLVM shared library via the USE_SHARED argument of |
||||||
|
llvm_config. Without this, llvm_config would add LLVM to the link list, |
||||||
|
but then also add the constituent static libraries, resulting in |
||||||
|
multiply defined symbols. |
||||||
|
|
||||||
|
Reviewers: beanz, mgorny |
||||||
|
|
||||||
|
Subscribers: llvm-commits |
||||||
|
|
||||||
|
Differential Revision: https://reviews.llvm.org/D44391 |
||||||
|
|
||||||
|
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327484 91177308-0d34-0410-b5e6-96231b3b80d8 |
||||||
|
--- |
||||||
|
cmake/modules/LLVMConfig.cmake.in | 2 ++ |
||||||
|
1 file changed, 2 insertions(+) |
||||||
|
|
||||||
|
diff --git a/cmake/modules/LLVMConfig.cmake.in b/cmake/modules/LLVMConfig.cmake.in |
||||||
|
index fe4df52..e700186 100644 |
||||||
|
--- a/cmake/modules/LLVMConfig.cmake.in |
||||||
|
+++ b/cmake/modules/LLVMConfig.cmake.in |
||||||
|
@@ -13,6 +13,8 @@ set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@) |
||||||
|
|
||||||
|
set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@) |
||||||
|
|
||||||
|
+set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@) |
||||||
|
+ |
||||||
|
set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@) |
||||||
|
|
||||||
|
set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@) |
||||||
|
-- |
||||||
|
1.8.3.1 |
||||||
|
|
Loading…
Reference in new issue