summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-11-29 19:59:29 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-11-29 19:59:29 +0000
commitf4dcc42e7b22a40eb66621d6592170326a5ed43e (patch)
treedeef8d24e56cac43a314d4bc942320f5caef5b74 /llvm
parent6a8e5f4b0f3759abe3a0ab1da99a15d413ef6dde (diff)
downloadbcm5719-llvm-f4dcc42e7b22a40eb66621d6592170326a5ed43e.tar.gz
bcm5719-llvm-f4dcc42e7b22a40eb66621d6592170326a5ed43e.zip
[Hexagon] Remove HexagonISD::PACKHL
llvm-svn: 319352
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonISelLowering.cpp1
-rw-r--r--llvm/lib/Target/Hexagon/HexagonISelLowering.h1
-rw-r--r--llvm/lib/Target/Hexagon/HexagonPatterns.td5
-rw-r--r--llvm/test/CodeGen/Hexagon/vect/vect-infloop.ll (renamed from llvm/test/CodeGen/Hexagon/vect/vect-packhl.ll)2
4 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
index 087a6d69439..22bbb3e94df 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
@@ -2216,7 +2216,6 @@ const char* HexagonTargetLowering::getTargetNodeName(unsigned Opcode) const {
case HexagonISD::INSERT: return "HexagonISD::INSERT";
case HexagonISD::INSERTRP: return "HexagonISD::INSERTRP";
case HexagonISD::JT: return "HexagonISD::JT";
- case HexagonISD::PACKHL: return "HexagonISD::PACKHL";
case HexagonISD::RET_FLAG: return "HexagonISD::RET_FLAG";
case HexagonISD::TC_RETURN: return "HexagonISD::TC_RETURN";
case HexagonISD::VCOMBINE: return "HexagonISD::VCOMBINE";
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.h b/llvm/lib/Target/Hexagon/HexagonISelLowering.h
index 781e49ab2d0..9f7891e1746 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLowering.h
+++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.h
@@ -51,7 +51,6 @@ namespace HexagonISD {
CP, // Constant pool.
COMBINE,
- PACKHL,
VSPLAT,
VASL,
VASR,
diff --git a/llvm/lib/Target/Hexagon/HexagonPatterns.td b/llvm/lib/Target/Hexagon/HexagonPatterns.td
index 00ce6916fbd..270575aa09a 100644
--- a/llvm/lib/Target/Hexagon/HexagonPatterns.td
+++ b/llvm/lib/Target/Hexagon/HexagonPatterns.td
@@ -464,7 +464,7 @@ def: Pat<(v4i8 (trunc V4I16:$Rs)),
// S2_vtruneh
def: Pat<(v2i16 (trunc V2I32:$Rs)),
- (LoReg (S2_packhl (HiReg $Rs), (LoReg $Rs)))>;
+ (A2_combine_ll (HiReg $Rs), (LoReg $Rs))>;
// --(4) Logical ---------------------------------------------------------
@@ -946,14 +946,11 @@ def SDTHexagonVCOMBINE: SDTypeProfile<1, 2, [SDTCisSameAs<1, 2>,
SDTCisSubVecOfVec<1, 0>]>;
def SDTHexagonVPACK: SDTypeProfile<1, 2, [SDTCisSameAs<1, 2>, SDTCisVec<1>]>;
-def HexagonPACKHL: SDNode<"HexagonISD::PACKHL", SDTHexagonI64I32I32>;
def HexagonCOMBINE: SDNode<"HexagonISD::COMBINE", SDTHexagonI64I32I32>;
def HexagonVCOMBINE: SDNode<"HexagonISD::VCOMBINE", SDTHexagonVCOMBINE>;
def HexagonVPACKE: SDNode<"HexagonISD::VPACKE", SDTHexagonVPACK>;
def HexagonVPACKO: SDNode<"HexagonISD::VPACKO", SDTHexagonVPACK>;
-def: OpR_RR_pat<S2_packhl, pf2<HexagonPACKHL>, i64, I32>;
-
def: Pat<(HexagonCOMBINE I32:$Rs, I32:$Rt), (Combinew $Rs, $Rt)>;
// The complexity of the combines involving immediates should be greater
diff --git a/llvm/test/CodeGen/Hexagon/vect/vect-packhl.ll b/llvm/test/CodeGen/Hexagon/vect/vect-infloop.ll
index dfdb019b677..4de390159fd 100644
--- a/llvm/test/CodeGen/Hexagon/vect/vect-packhl.ll
+++ b/llvm/test/CodeGen/Hexagon/vect/vect-infloop.ll
@@ -1,6 +1,6 @@
; Extracted from test/CodeGen/Generic/vector-casts.ll: used to loop indefinitely.
; RUN: llc -march=hexagon < %s | FileCheck %s
-; CHECK: packhl
+; CHECK: combine
define void @a(<2 x double>* %p, <2 x i8>* %q) {
%t = load <2 x double>, <2 x double>* %p
OpenPOWER on IntegriCloud